Commit Graph

105 Commits

Author SHA1 Message Date
Glenn Maynard 22fe9d6841 RageSemaphore 2004-06-14 05:29:12 +00:00
Glenn Maynard d3bd09cdc8 fix up more obscure races 2004-06-13 07:55:27 +00:00
Glenn Maynard b29e17b118 fix most odd thread startup problems 2004-06-13 07:09:41 +00:00
Glenn Maynard 0259692fbf c_str() 2004-06-11 23:46:29 +00:00
Glenn Maynard 2454c80541 linux build fix 2004-06-11 22:55:37 +00:00
Glenn Maynard 46a374ff40 check CRASH_HANDLER 2004-06-11 19:29:03 +00:00
Glenn Maynard 1048967584 use arch/Threads 2004-06-11 19:24:05 +00:00
Glenn Maynard b2b661dd8c dsiable g_MutexList and g_FreeMutexIDs: they're not threadsafe themselves,
and they're only used by MarkLockedMutex which is already disabled
2004-06-09 17:15:58 +00:00
Glenn Maynard 32893f5b63 better error message 2004-06-06 05:37:25 +00:00
Glenn Maynard b31996b97f better error checking 2004-05-24 04:24:50 +00:00
Glenn Maynard 7c56df3fd7 types 2004-05-11 20:50:08 +00:00
Glenn Maynard f9f10e2372 more license updates 2004-05-06 02:40:33 +00:00
Glenn Maynard 01e54b95a0 disable lock ordering checks for now 2004-05-05 20:37:14 +00:00
Glenn Maynard b82a155fe7 cleanup 2004-04-20 03:51:41 +00:00
Glenn Maynard 732cf4b380 cleanup 2004-04-20 03:44:38 +00:00
Glenn Maynard 0607e7976d if we run out of mutex slots, log a list 2004-04-20 01:08:49 +00:00
Glenn Maynard 5dee44f989 slight unification of crash apis; better .vdi searching 2004-04-18 00:08:37 +00:00
Glenn Maynard e1d583dac4 add RageThread::GetCurrentThreadID 2004-04-07 03:38:15 +00:00
Steve Checkoway 20a8bab45c Clean up includes. 2004-04-05 05:22:32 +00:00
Glenn Maynard 7e7d68bd94 implement HaltAllThreads on DARWIN 2004-03-28 06:04:37 +00:00
Glenn Maynard e9368790a3 remove unused SDL mutex implementation 2004-03-25 04:06:44 +00:00
Glenn Maynard fd248f087b fix false positives 2004-03-21 09:30:15 +00:00
Glenn Maynard 026908a3c2 disable for now 2004-03-21 09:17:42 +00:00
Glenn Maynard d48f416ec3 implement mutex order tracking 2004-03-21 08:36:43 +00:00
Glenn Maynard 4f7432794a include the name of threads and the mutex on mutex deadlock 2004-03-21 04:28:38 +00:00
Glenn Maynard e779e80350 give RageMutexes names, so they can be identified more easily 2004-03-21 04:10:43 +00:00
Glenn Maynard 8d435c2b4d use pthread directly
deadlock handling in pthreads
2004-03-20 22:01:40 +00:00
Glenn Maynard 9bfe4b0620 use LinuxThreadHelpers 2004-03-12 05:26:10 +00:00
Glenn Maynard 0f8d5281a7 on mutex deadlock, get a backtrace of the thread that we're deadlocked
with
2004-02-25 21:15:25 +00:00
Glenn Maynard ecce498108 use sm_crash 2004-02-25 01:33:15 +00:00
Steve Checkoway a69570f749 Fix warnings. 2004-02-21 10:30:07 +00:00
Glenn Maynard be077fe046 "unknown thread" slot 2004-02-20 23:42:40 +00:00
Steve Checkoway 00bfa2b892 If we can't set a checkpoint, don't crash, just return. 2004-02-20 22:49:26 +00:00
Manu Evans 3f812dc63c changed DeleteObject to ReleaseHandle 2004-02-01 01:07:33 +00:00
Manu Evans 173d4c2c84 Still tryig to get xbox building..
DeleteObject needed replacing with CloseHandle for xbox (and maybe PC too?)
RageDisplay_D3D was creating dynamic links to the wrong .lib's ..
they are only in the windows build now ..
libs are included in the project file for xbox ..
2004-01-31 01:57:33 +00:00
Glenn Maynard ee4aaf5cda fix linux compile 2004-01-18 04:00:56 +00:00
Glenn Maynard 077e8c5f8a comment 2004-01-18 02:46:31 +00:00
Glenn Maynard 93204d9b08 Simpler and more efficient recursive mutex implementation.
Non-SDL mutexes for Win32.  (Wrote this while writing the above;
keeping it since I hope to purge most SDL stuff some day, and we
can also do some deadlock checks that we can't do cleanly with
SDL mutexes.)
2004-01-17 09:32:11 +00:00
Glenn Maynard d4c151937e add RageThread::ResumeAllThreads 2004-01-12 01:36:25 +00:00
Glenn Maynard a6b072c9ca Move debugging options into a separate INI section, since I use them
very frequently, and they're mostly not available in the menus.

Add LogCheckpoints.

Move checkpoint code into a namespace.
2003-11-24 00:23:18 +00:00
Chris Danford 47def7d3dc xbox updates 2003-11-13 00:39:36 +00:00
Glenn Maynard fe79f320dd RageThread::HaltAllThreads for Windows. 2003-10-01 08:20:03 +00:00
Glenn Maynard 352df48614 fix thread deinit 2003-09-03 05:10:23 +00:00
Glenn Maynard 3f19c51f27 simplify 2003-09-03 03:30:32 +00:00
Steve Checkoway 9bf1fec101 Added files. 2003-08-08 09:03:30 +00:00
Chris Danford 457d0d5232 fix ASSERT in IH_DInput on WindowReset because RageThread incorrectly reports that it's created 2003-08-06 05:50:34 +00:00
Glenn Maynard 67aacc9d97 Don't pull in SDL_thread.h from RageThreads.h.
Implement per-thread checkpoints portably.  This replaces VDCHECKPOINT.
2003-08-05 01:25:33 +00:00
Glenn Maynard cb50cf3f79 halt/killing threads 2003-07-27 07:00:13 +00:00
Glenn Maynard 1414f9149b name the main thread 2003-07-27 03:13:40 +00:00
Glenn Maynard 11b706e6bd add thread handler 2003-07-27 03:08:02 +00:00