Steve Checkoway
|
e349c58ba9
|
Fix compile for systems that use pthreads but don't define UNIX and don't have clockid_t defined. If necessary, this can be redone in a more general way using configure.ac.
|
2006-07-13 06:31:10 +00:00 |
|
Glenn Maynard
|
6e245f46ae
|
use pthread_condattr_setclock to avoid race conditions with the clock
|
2006-07-12 01:47:10 +00:00 |
|
Glenn Maynard
|
fcab277ec9
|
keep this around as a reminder; this doesn't matter for normal clocks, but it's not good for CLOCK_MONOTONIC
|
2006-03-23 21:45:53 +00:00 |
|
Chris Danford
|
96d75f8cee
|
fix timeout value passed to pthread_cond_timedwait
|
2006-03-23 17:36:51 +00:00 |
|
Steve Checkoway
|
bb1b56aed4
|
BSD
|
2006-03-20 06:52:06 +00:00 |
|
Steve Checkoway
|
3cd26abb99
|
Just in case these are ever implemented, fix. sem_* return -1 for all error conditions. Only sem_destroy sets errno to EBUSY anway.
Also, ASSERT so we get a backtrace.
|
2006-02-05 13:24:44 +00:00 |
|
Steve Checkoway
|
79218ae6ad
|
Bah. Revert. The functions sem_init() and sem_destroy() are implemented as stubs only. They return -1 with errno=ENOSYS.
|
2006-02-05 13:21:58 +00:00 |
|
Steve Checkoway
|
48bf80b5f6
|
OS X has semaphores for every version we support (10.2.8 and on).
|
2006-02-05 13:00:09 +00:00 |
|
Steve Checkoway
|
833d06d1f3
|
pthread_join() returns an error code, it does not set errno.
|
2005-12-17 13:17:35 +00:00 |
|
Glenn Maynard
|
d03f1ed31f
|
cleanup
|
2005-12-13 01:10:48 +00:00 |
|
Steve Checkoway
|
aa0f90feae
|
__MACOSX__ --> MACOSX, keep __MACOSX__ for ogg.
|
2005-10-24 10:37:56 +00:00 |
|
Glenn Maynard
|
1783fe71ef
|
simplify
|
2005-07-19 03:15:24 +00:00 |
|
Glenn Maynard
|
a79f1381f3
|
fix casting problem?
|
2005-06-22 20:58:41 +00:00 |
|
Steve Checkoway
|
99387583f9
|
DARWIN -> __MACOSX__
|
2005-06-21 08:56:36 +00:00 |
|
Ben Anderson
|
d137be895e
|
Thanks Glenn, your blatant 'it worked for me' syndrome really bit me in the ass.
|
2005-04-05 23:51:38 +00:00 |
|
Glenn Maynard
|
af231d1a63
|
cleanup
|
2005-04-05 05:07:13 +00:00 |
|
Ted Percival
|
e1ab8c5b77
|
fix timing errors in thread wait functions on unix. patch by makovick fixes bug #1154212
|
2005-03-24 19:46:50 +00:00 |
|
Glenn Maynard
|
1b49d06b5d
|
oops
|
2005-01-26 21:41:40 +00:00 |
|
Glenn Maynard
|
08ddf9af77
|
fix up EventImpl_Pthreads::Wait
|
2005-01-26 21:13:50 +00:00 |
|
Glenn Maynard
|
63604a6536
|
implement RageEvent::Wait timeouts
|
2005-01-26 20:59:41 +00:00 |
|
Glenn Maynard
|
0330fa9e87
|
untested pthreads event implementation
|
2004-11-07 22:56:03 +00:00 |
|
Chris Danford
|
79beff5e26
|
revert timeout length
|
2004-10-09 16:56:29 +00:00 |
|
Chris Danford
|
47e2e2d48d
|
increase mutex timeout
|
2004-10-09 09:00:24 +00:00 |
|
Glenn Maynard
|
34f22e588c
|
fix up SemaImpl_Pthreads::Wait
|
2004-09-08 21:58:47 +00:00 |
|
Glenn Maynard
|
3e7f55ae30
|
no, don't use pthreads extensions if we don't at least have timedlock (not going to bother making it two tests unless it's actually needed)
|
2004-09-08 08:56:19 +00:00 |
|
Steve Checkoway
|
bf3ce581af
|
OS X has pthread_cond_timedwait but not pthread_mutex_timedlock.
|
2004-09-08 08:36:43 +00:00 |
|
Glenn Maynard
|
2625da14f2
|
cleanup
support semaphore timeouts
|
2004-09-08 07:56:32 +00:00 |
|
Steve Checkoway
|
bdd4988829
|
Simplify.
|
2004-09-07 12:49:49 +00:00 |
|
Steve Checkoway
|
8adbeda32a
|
Use DarwinThreadHelpers, remove mach stuff.
|
2004-09-07 12:38:10 +00:00 |
|
Glenn Maynard
|
5403b135b7
|
use RunningUnderValgrind()
|
2004-09-06 08:32:25 +00:00 |
|
Glenn Maynard
|
d176c8af17
|
avoid pthread_mutex_timedlock in valgrind
|
2004-08-22 01:31:12 +00:00 |
|
Glenn Maynard
|
2ec6b55568
|
try using conditions for semaphores; standard semaphores are apparently too hard for OSX
|
2004-06-16 04:23:50 +00:00 |
|
Glenn Maynard
|
78411846e0
|
simplify; use SemaImpl_Pthreads instead of using low-level semaphores in two places
|
2004-06-16 03:13:11 +00:00 |
|
Glenn Maynard
|
f5a35af702
|
use errno
|
2004-06-16 02:20:14 +00:00 |
|
Glenn Maynard
|
7821347dee
|
use errno
|
2004-06-16 02:18:56 +00:00 |
|
Glenn Maynard
|
994c367deb
|
don't throw in thread setup
|
2004-06-16 02:17:20 +00:00 |
|
Glenn Maynard
|
76f41546e2
|
fix various races
|
2004-06-16 01:53:27 +00:00 |
|
Glenn Maynard
|
003ba7cb63
|
fix compile
|
2004-06-14 05:25:25 +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 |
|
Steve Checkoway
|
59d82961b9
|
Fix compile.
|
2004-06-11 07:39:53 +00:00 |
|
Glenn Maynard
|
e80b8885db
|
ThreadImpl_Pthreads compiles
|
2004-06-11 05:26:00 +00:00 |
|
Glenn Maynard
|
310c18d70c
|
break thread/mutex implementation stuff out of RageThreads
(not used yet)
|
2004-06-11 05:12:58 +00:00 |
|