Update of /cvsroot/pclasses/pclasses2/src/System
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8680/src/System
Modified Files:
Semaphore.win32.cpp
Log Message:
Compile-fix for win32.
Index: Semaphore.win32.cpp
===================================================================
RCS file: /cvsroot/pclasses/pclasses2/src/System/Semaphore.win32.cpp,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -u -d -r1.1.1.1 -r1.2
--- Semaphore.win32.cpp 22 Dec 2004 17:54:36 -0000 1.1.1.1
+++ Semaphore.win32.cpp 24 Jan 2005 01:22:32 -0000 1.2
@@ -25,6 +25,8 @@
namespace P {
+namespace System {
+
struct Semaphore::Handle {
HANDLE handle;
};
@@ -37,7 +39,7 @@
switch(mode)
{
case CreateFail:
- //racy but not possible otherwise
+ //@fixme racy but not possible otherwise
handle = OpenSemaphore(SEMAPHORE_ALL_ACCESS, TRUE, name);
if(handle != INVALID_HANDLE_VALUE)
{
@@ -72,7 +74,7 @@
_handle->handle = handle;
}
-Semaphore::~Semaphore() throw(SystemError)
+Semaphore::~Semaphore() throw()
{
CloseHandle(_handle->handle);
delete _handle;
@@ -109,4 +111,6 @@
"Could not increase semaphore count", P_SOURCEINFO);
}
-}
+} // !namespace System
+
+} // !namespace P
|