search for: idle_control_cod

Displaying 2 results from an estimated 2 matches for "idle_control_cod".

Did you mean: idle_control_code
2006 Oct 26
2
The win32-service patch is committed - and now, some questions
...ut this snippet in their service_main: # You will see this line in tdaemon.rb while state == RUNNING || state == PAUSED || state == 0 # Do stuff end If I remove the ''|| state == 0'' portion, I still experience deadlock while trying to stop the service. I assume the 0 is the IDLE_CONTROL_CODE value that Patrick added. Is that correct? Also, I wonder if we could abstract that line down to something a little more user friendly. Instead of this stock line: while state == RUNNING || state == PAUSED || state == 0 ... end How about abstracting that down to something like: while run...
2006 Dec 07
0
Fwd: win32-service problems with patch
...trl(VALUE self) { while (WaitForSingleObject(hStopEvent,0) == WAIT_TIMEOUT) - { + { __try { EnterCriticalSection(&csControlCode); @@ -108,20 +102,22 @@ // Check to see if anything interesting has been signaled if (waiting_control_code != IDLE_CONTROL_CODE) { - // if there is a code, create a ruby thread to deal with it - // this might be over engineering the solution, but I don''t - // want to block Service_Ctrl longer than necessary and the - // critical section will block it. -...