1
0
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:
2014-04-09 23:32:13 -07:00
parent b774548066
commit f83ec34c67
8 changed files with 58 additions and 22 deletions

View File

@ -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);
}

View File

@ -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);