search for: wait_object_0

Displaying 8 results from an estimated 8 matches for "wait_object_0".

2004 Oct 23
0
win32-ipc, with blocks (code review please)
...No objects to wait for"); } REALLOC_N(handles,HANDLE,len); for(i=0; i<len; i++) { handles[i] = (HANDLE)NUM2UINT(RARRAY(arr)->ptr[i]); } dwWait = WaitForMultipleObjects(len,handles,fWaitAll,dwTimeOut); // Yield block if signalled and block is provided if((dwWait >= WAIT_OBJECT_0) && (dwWait < WAIT_OBJECT_0 + len)){ if(rb_block_given_p()){ rb_yield(klass); } return INT2NUM(dwWait - WAIT_OBJECT_0 + 1); // signalled } if((dwWait >= WAIT_ABANDONED_0) && (dwWait < WAIT_ABANDONED_0 + len)){ return INT2NUM(-(dwWait - WAIT_AB...
2006 Dec 07
0
Fwd: win32-service problems with patch
...NDLER_FUNCTION)Service_Ctrl); if(ssh == (SERVICE_STATUS_HANDLE)0){ - ErrorStopService(); - rb_raise(cDaemonError,"RegisterServiceCtrlHandler failed"); - } - - // wait for sevice initialization - for(i=1;TRUE;i++) - { - if(WaitForSingleObject(hStartEvent, 1000) == WAIT_OBJECT_0) - break; - - SetTheServiceStatus(SERVICE_START_PENDING, 0, i, 1000); + // no service to stop, no service handle to notify, + // nothing to do but exit + return; } // The service has started. SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0); + SetEven...
2005 Nov 26
1
Another patch of win32-service for nice startup.
...// Obtain the name of the service. LPTSTR lpszServiceName = lpszArgv[0]; @@ -46,6 +48,15 @@ rb_raise(cDaemonError,"RegisterServiceCtrlHandler failed"); } + // wait for sevice initialization + for(i=1;TRUE;i++) + { + if(WaitForSingleObject(hStartEvent, 1000) == WAIT_OBJECT_0) + break; + + SetTheServiceStatus(SERVICE_START_PENDING, 0, i, 1000); + } + // The service has started. SetTheServiceStatus(SERVICE_RUNNING, NO_ERROR, 0, 0); @@ -241,9 +252,9 @@ } #endif - // Create Thread for service main - hThread = CreateThread(NULL,0,ThreadP...
2007 Aug 06
0
win32-changenotify and events
...changenotify now requires win32-event. In the constructor, if an event isn''t explicitly passed, a new Win32::Event object is created (instead of calling CreateEvent directly). Then, in the ChangeNotify#wait method, I manually set the event''s signaled state to true when it hits WAIT_OBJECT_0. Does that seem appropriate? Here''s a quick sample program I used: # test.rb event = Win32::Event.new(''test'') p event.signaled? # false filter = ChangeNotify::FILE_NAME | ChangeNotify::DIR_NAME cn = ChangeNotify.new("C:\\", true, filter, event) cn.wait(10)...
2019 Jan 14
6
[PATCH nbdkit incomplete 0/5] Port to Windows.
This is an incomplete port to Windows. Currently the server compiles and starts up successfully, but goes into an infinite loop when you connect to it. Nevertheless I think the approach is ready for feedback. This being Windows the changes go quite deep. Rich.
2013 Aug 30
0
Wine release 1.7.1
...sts for FILE_USE_FILE_POINTER_POSITION. ntdll/tests: Mark the NtReadFile call which doesn't return STATUS_PENDING for an overlapped IO call as broken, and don't test returned values in broken case. ntdll/tests: Fix one more place regarding temp path usage. ntdll/tests: Use WAIT_OBJECT_0 instead of 0. server: Store full-sized completion information on the server side. kernel32: Add a trace to ClearCommError. ntdll: Ignore ioctl(TIOCGICOUNT) failures. ntdll: Fallback to ioctl(TIOCOUTQ) if ioctl(TIOCSERGETLSR) fails. ntdll: Properly test line status regi...
2020 Aug 18
15
[PATCH nbdkit 0/9] Port to Windows.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw This is the port to Windows using native Windows APIs (not MSYS or Cygwin). This patch series is at the point where it basically now works. I can run the server with the memory plugin, and access it remotely using guestfish, creating filesystems and so on without any apparent problems. Nevertheless there are many
2020 Aug 20
15
[PATCH nbdkit 0/13] Port to Windows without using a separate library.
Also available here: https://github.com/rwmjones/nbdkit/tree/2020-windows-mingw-nolib After a lot of work I have made the port to Windows work without using a separate library. Instead, on Windows only, we build an "import library" (library of stubs) which resolves references to nbdkit_* functions in the main program and fixes up the plugin, basically the first technique outlined in