commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mt...@apache.org
Subject svn commit: r810537 - /commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
Date Wed, 02 Sep 2009 15:00:30 GMT
Author: mturk
Date: Wed Sep  2 15:00:30 2009
New Revision: 810537

URL: http://svn.apache.org/viewvc?rev=810537&view=rev
Log:
Use auto-reset event for signal dispatcher event

Modified:
    commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c

Modified: commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c
URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c?rev=810537&r1=810536&r2=810537&view=diff
==============================================================================
--- commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c (original)
+++ commons/sandbox/runtime/trunk/src/main/native/os/win32/main.c Wed Sep  2 15:00:30 2009
@@ -299,8 +299,14 @@
     }
     /*
      * Create a simple unnamed signaling event.
+     * We use auto-reset event meaning that if multiple
+     * objects are waiting on that even only the one of them
+     * will be ever signaled.
+     * Always use WaitForMultipleObjects with this handle as
+     * first wait handle instead WaitForSingleObjects and
+     * call signal dispatching function when such event occurs.
      */
-    dll_psig_handle = CreateEvent(NULL, TRUE, FALSE, NULL);
+    dll_psig_handle = CreateEvent(NULL, FALSE, FALSE, NULL);
     if (IS_INVALID_HANDLE(dll_psig_handle))
         return ACR_GET_OS_ERROR();
 



Mime
View raw message