Commit Graph
28 Commits
Author SHA1 Message Date
Glenn Maynard b77024f3bc include 2006-09-18 22:45:42 +00:00
Glenn Maynard be5ff68d58 Fix race condition: thread->ThreadId is not necessarily assigned before
StartThread is run.
2006-04-05 06:45:03 +00:00
Glenn Maynard 01629e7f53 spacing 2006-02-14 11:35:00 +00:00
Glenn Maynard 23d907e3d4 remove ill-formatted comment (I feel like I've asked him to space comments
readably, like the rest of the code, half a dozen times).

The function is probably just returning ERROR_CALL_NOT_IMPLEMENTED.
If it's returning some other error, find out what it is and add it to the conditional.  Don't
just break out without understanding the logic of the rest of the function.
2005-02-12 06:21:29 +00:00
Charles Lohr 0051938177 We really shouldn't crash on systems this command is not fully supported on. Windows 9x will always respond with a 1. 2005-02-12 05:32:35 +00:00
Glenn Maynard d38fedfcaa fix thread handle leak (these don't show up as threads anywhere, but
sysinternals handle.exe shows them)
2005-02-06 10:25:13 +00:00
Glenn Maynard 46f414e7e5 Fix race condition.
Work around undocumented SignalObjectAndWait behavior; the docs
refer to "the object", but the function takes two objects.  (Cut and paste
documentation ...)
2005-01-29 20:25:52 +00:00
Glenn Maynard 8bf00eb4e8 implement event wait timeouts in win32 2005-01-27 01:54:33 +00:00
Glenn Maynard 903aaadcc5 After signalling an event, always wait for the signalled thread to touch
m_WaitersDone.  This fixes problems with

 event.Lock();
 event.Signal();
 while(x) event.Wait();

picking up the signal that it just sent (which is wrong), especially in the
debugger.
2005-01-27 01:19:24 +00:00
Glenn Maynard 63604a6536 implement RageEvent::Wait timeouts 2005-01-26 20:59:41 +00:00
Glenn Maynard 4de15ff3a7 untested thread events implementation for win32 2004-11-07 22:43:39 +00:00
Glenn Maynard 00b2d18a8e show thread names in the VC debugger 2004-09-17 02:36:04 +00:00
Glenn Maynard fefe7bad49 fix thread handles on win9x 2004-09-14 04:39:52 +00:00
Glenn Maynard 81f2f6460a hopefully fix init order in vc6 2004-09-08 06:33:07 +00:00
Glenn Maynard 9cf85e4b84 remove comment 2004-09-07 04:24:26 +00:00
Glenn Maynard 7f805dcc87 simplify 2004-09-07 03:26:23 +00:00
Glenn Maynard 3f615baa8d remove ugly ThreadImpl::GetCrashHandle 2004-09-07 03:05:56 +00:00
Glenn Maynard 3bf79d0bc4 track HANDLE separately 2004-09-07 02:55:41 +00:00
Chris Danford 9d011d3489 increase number of retries to avoid timeout while debugging 2004-08-22 15:03:05 +00:00
Chris Danford d47ab7e9f9 wait 60s max in debug builds, 15s max in optimized 2004-08-08 15:46:53 +00:00
Chris Danford d755e660a6 Don't timeout on a Wait() if a dialog is showing. The movie decode semaphone would timeout on most dialogs.
Increase Win32 semaphone timeout from 15 -> 60 secs.
2004-08-07 21:38:54 +00:00
Glenn Maynard 902182ae8d fix RageThread::HaltAllThreads() deadlock in Windows 2004-06-25 19:07:30 +00:00
Glenn Maynard 075bc0ff9a compile fix 2004-06-16 03:08:21 +00:00
Glenn Maynard f6876a8f12 set piThreadID 2004-06-16 03:07:28 +00:00
Glenn Maynard 76f41546e2 fix various races 2004-06-16 01:53:27 +00:00
Glenn Maynard cf9d31917f add TryLock
add semaphores
2004-06-14 05:21:46 +00:00
Glenn Maynard 4c14fb3943 simplify (handle recursive locking in RageMutex) 2004-06-11 19:08:56 +00:00
Glenn Maynard 310c18d70c break thread/mutex implementation stuff out of RageThreads
(not used yet)
2004-06-11 05:12:58 +00:00