Damien wrote:

Ok, so if I want to use any function/class of the engine, I have to manage
mutex for every call ?
Ex : When I call Msg(), do I have to lock a mutex before, and unlock it
after ?

That would be the safest thing to do.  You could just create your own
wrapper for each engine API function that uses some locking mechanism to
make sure that only one of these engine calls happens at a time within
the context of your plugin.  Since you don't have access to the engine
source code, there's no simple way for you to tell which engine
functions are using global variables (and thus aren't thread safe).

--
Jeffrey "botman" Broome

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlcoders

Reply via email to