From: <mie...@us...> - 2012-11-07 04:15:06
|
Revision: 8569 http://sourceforge.net/p/oorexx/code-0/8569 Author: miesfeld Date: 2012-11-07 04:15:02 +0000 (Wed, 07 Nov 2012) Log Message: ----------- #1129 alarm still doesn't See ticket [Bugs:#1129] #935 alarm doesn't See ticket [Bugs:#935] Modified Paths: -------------- main/branches/4.1/trunk/common/platform/unix/SysSemaphore.cpp main/branches/4.1/trunk/interpreter/platform/unix/TimeSupport.cpp Modified: main/branches/4.1/trunk/common/platform/unix/SysSemaphore.cpp =================================================================== --- main/branches/4.1/trunk/common/platform/unix/SysSemaphore.cpp 2012-11-07 04:03:23 UTC (rev 8568) +++ main/branches/4.1/trunk/common/platform/unix/SysSemaphore.cpp 2012-11-07 04:15:02 UTC (rev 8569) @@ -76,6 +76,9 @@ */ SysSemaphore::SysSemaphore(bool createSem) { + created = false; + postedCount = 0; + if (createSem) { create(); Modified: main/branches/4.1/trunk/interpreter/platform/unix/TimeSupport.cpp =================================================================== --- main/branches/4.1/trunk/interpreter/platform/unix/TimeSupport.cpp 2012-11-07 04:03:23 UTC (rev 8568) +++ main/branches/4.1/trunk/interpreter/platform/unix/TimeSupport.cpp 2012-11-07 04:15:02 UTC (rev 8569) @@ -103,7 +103,7 @@ wholenumber_t, numdays, wholenumber_t, alarmtime) { - SysSemaphore sem; /* Event-semaphore */ + SysSemaphore sem(true); /* Event-semaphore */ int msecInADay = 86400000; /* number of milliseconds in a day */ /* set the state variables */ |