1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-17 10:52:46 +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

@ -277,14 +277,14 @@ plStatusLog::plStatusLog( uint8_t numDisplayLines, const plFileName &filename, u
if (filename.IsValid())
{
fFilename = filename;
fSema = new hsSemaphore(1, fFilename.AsString().c_str());
fSema = new hsGlobalSemaphore(1, fFilename.AsString().c_str());
}
else
{
fFilename = "";
flags |= kDontWriteFile;
fSema = new hsSemaphore(1);
fSema = new hsGlobalSemaphore(1);
}
fOrigFlags = fFlags = flags;

View File

@ -86,7 +86,7 @@ class plStatusLog
plFileName fFilename;
char** fLines;
uint32_t* fColors;
hsSemaphore* fSema;
hsGlobalSemaphore* fSema;
FILE* fFileHandle;
uint32_t fSize;
bool fForceLog;