Jump to content

[Dev] Multi threaded Acution House


Recommended Posts

  • 1 year later...
Posted

Error    1    error C2664: 'ACE_Based::Thread::Thread(ACE_Based::Runnable *)' : cannot convert parameter 1 from 'AuctionHouseMgr' to 'ACE_Based::Runnable *'    F:\\zero mmaps\\MaNGOSZero\\src\\game\\World.cpp    1146    1    game

- compilation without mutex.

With mutex more errors.

Posted

I'm sorry, but you really need to look up how threads and mutexes work before trying something like this.

You use the mutex lock and unlock 3 times, and one of them is in the definition of class, which makes absolutely no sense.

As well, there are other functions which modify the data in AuctionHouseMgr, none of which you bothered to use the mutex with. This is like having a house with a thousand doors, putting a lock on one of them, and expecting it to be safe.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use