mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-18 19:29:09 +00:00
Move the old IPC-based semaphore to hsGlobalSemaphore, and provide a
"normal" (inter-thread only) semaphore class.
This commit is contained in:
@ -53,8 +53,8 @@ void plCrashBase::IInit(const char* file)
|
||||
{
|
||||
char sema[128];
|
||||
snprintf(sema, arrsize(sema), "%s-%s", file, CRASH_NOTIFY_SUFFIX);
|
||||
fCrashed = new hsSemaphore(0, sema);
|
||||
fCrashed = new hsGlobalSemaphore(0, sema);
|
||||
|
||||
snprintf(sema, arrsize(sema), "%s-%s", file, CRASH_HANDLE_SUFFIX);
|
||||
fHandled = new hsSemaphore(0, sema);
|
||||
fHandled = new hsGlobalSemaphore(0, sema);
|
||||
}
|
||||
|
@ -48,8 +48,8 @@ You can contact Cyan Worlds, Inc. by email legal@cyan.com
|
||||
class plCrashBase
|
||||
{
|
||||
protected:
|
||||
hsSemaphore* fCrashed;
|
||||
hsSemaphore* fHandled;
|
||||
hsGlobalSemaphore* fCrashed;
|
||||
hsGlobalSemaphore* fHandled;
|
||||
|
||||
~plCrashBase();
|
||||
void IInit(const char* file);
|
||||
|
Reference in New Issue
Block a user