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:
@ -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;
|
||||
|
@ -86,7 +86,7 @@ class plStatusLog
|
||||
plFileName fFilename;
|
||||
char** fLines;
|
||||
uint32_t* fColors;
|
||||
hsSemaphore* fSema;
|
||||
hsGlobalSemaphore* fSema;
|
||||
FILE* fFileHandle;
|
||||
uint32_t fSize;
|
||||
bool fForceLog;
|
||||
|
Reference in New Issue
Block a user