2
0
mirror of https://github.com/boostorg/thread.git synced 2026-02-09 11:32:12 +00:00
Commit Graph

402 Commits

Author SHA1 Message Date
Anthony Williams
89348a9569 basic timed mutex uses an Auto-Reset Event rather than a semaphore; changed thread_primitives to avoid use of macros
[SVN r36067]
2006-11-17 10:45:27 +00:00
Anthony Williams
f260fd62d4 inherit publicly from underlying mutex
[SVN r36066]
2006-11-17 09:07:29 +00:00
Anthony Williams
e2550db927 More tests for try_lock_shareable
[SVN r35870]
2006-11-06 12:17:34 +00:00
Anthony Williams
0d763fe627 Added try_lock_shareable
[SVN r35869]
2006-11-06 09:32:26 +00:00
Anthony Williams
9895e74560 Added upgradeable stuff
[SVN r35798]
2006-10-30 21:36:44 +00:00
Anthony Williams
82aa808b3b Current read-write mutex impl doesn't support upgrading
[SVN r35752]
2006-10-27 15:18:59 +00:00
Anthony Williams
fb683c8d95 New, fairer and faster read-write mutex algorithm
[SVN r35751]
2006-10-27 15:18:00 +00:00
Anthony Williams
819c67d52b Increased count limits to use all available space in state field; extracted create_anonymous_event; ensure shared event is correctly
set


[SVN r35659]
2006-10-18 13:15:41 +00:00
Anthony Williams
95a476a4cc Updated tests for read_write_mutex, and fixed initialization of events
[SVN r35648]
2006-10-17 17:22:57 +00:00
Anthony Williams
c4625de938 Updated read-write mutex implementation to support upgradeable locks too
[SVN r35499]
2006-10-05 14:42:08 +00:00
Anthony Williams
eeb77fdd87 New look read-write mutex
[SVN r35497]
2006-10-05 09:38:31 +00:00
Anthony Williams
7aed765a77 Only get the semaphore once at the beginning of lock/timed_lock
[SVN r35494]
2006-10-05 07:34:28 +00:00
Anthony Williams
5a4f798320 Avoid doing an extra CAS if the same number of threads are waiting when we wake up as when we go to sleep
[SVN r35487]
2006-10-04 11:28:26 +00:00
Anthony Williams
8f611e4d19 Improved algorithm of basic_timed_mutex, and changed boost::mutex to use that as the underlying type
[SVN r35486]
2006-10-04 11:09:55 +00:00
Anthony Williams
a646f1c818 Changed tests that rely on condition variables to use the new basic_condition<lock_type> rather than plain condition
[SVN r35485]
2006-10-04 11:06:24 +00:00
Anthony Williams
3d4743972e New lock algorithm with
[SVN r35454]
2006-10-03 10:16:22 +00:00
Anthony Williams
553aad753b Experimental change to template the whole condition variable on the lock type, rather than the wait functions
[SVN r35362]
2006-09-28 11:41:14 +00:00
Anthony Williams
f8a08dfaad condition doesn't need to be a friend of these classes in the new implementation
[SVN r35361]
2006-09-28 11:31:40 +00:00
Anthony Williams
956ed86655 Added missing include
[SVN r35318]
2006-09-25 09:09:02 +00:00
Roland Schwarz
e258fb3fe9 Added pthread compile comments for win32
[SVN r35309]
2006-09-24 13:55:47 +00:00
Roland Schwarz
676eb029b8 Examples compile with bbv1
[SVN r35308]
2006-09-24 13:08:22 +00:00
Roland Schwarz
6459de79c3 More sources added
[SVN r35290]
2006-09-23 15:37:42 +00:00
Roland Schwarz
af774310ef disable MSVC DLL warnings for derivation from noncopyable
[SVN r35281]
2006-09-22 17:00:21 +00:00
Roland Schwarz
b1c5977064 cleaned up time conversions for pthread implementation
[SVN r35280]
2006-09-22 16:56:06 +00:00
Anthony Williams
d92430c8ee Added explicit check for value!=0, to remove warning
[SVN r35273]
2006-09-22 10:31:25 +00:00
Anthony Williams
ce384ef3d8 Ensure thread handle is closed correctly. Fix race conditions on notify.
[SVN r35272]
2006-09-22 09:41:34 +00:00
Roland Schwarz
c2cfd16c6c replaced <library-file> by <library>
[SVN r35251]
2006-09-21 16:31:56 +00:00
Anthony Williams
fcfd30f124 Don't unlink a thread that's been notified when it wakes, as the unlink is done as part of the notify
Hold the gate whilst we notify all the waiting threads, so they don't unlink out from under us.


[SVN r35222]
2006-09-20 10:06:49 +00:00
Roland Schwarz
20cc8e6c30 corrected PTW32_LIB variable
[SVN r35220]
2006-09-19 20:59:40 +00:00
Anthony Williams
4bff122033 We don't need to lock round every notify when notifying all, since we've already isolated the list
[SVN r35202]
2006-09-19 14:11:45 +00:00
Roland Schwarz
49e437f11e using modules.peek to access environment variables for pthread
[SVN r35167]
2006-09-18 19:28:28 +00:00
Roland Schwarz
63bad0ad64 build support for boost.build v2
[SVN r35166]
2006-09-18 18:47:47 +00:00
Roland Schwarz
33ff838081 <sysinclude> really needs to refer to $(BOOST_ROOT). Relative paths not working.
[SVN r35162]
2006-09-18 18:02:29 +00:00
Anthony Williams
5328b43191 Serialize the final checks, too, so we don't get race conditions in the BOOST_CHECK_EQUAL in call_once_thread
[SVN r34842]
2006-08-07 16:32:26 +00:00
Anthony Williams
7aac1e69af New once test under BSL
[SVN r34841]
2006-08-07 16:31:32 +00:00
Anthony Williams
94207924ad Eliminated some "magic numbers"
[SVN r34840]
2006-08-07 16:14:42 +00:00
Roland Schwarz
3671f1792d compiler choked on conversion to long in function get_milliseconds_until_time
[SVN r34816]
2006-08-04 16:57:57 +00:00
Roland Schwarz
3da29cb470 corrected typo
[SVN r34815]
2006-08-04 10:39:46 +00:00
Roland Schwarz
4448aa7fb9 disable warnings of non dll base class for noncopyable. This is necessary for bbv2 since the warning level now is W3
[SVN r34814]
2006-08-04 10:35:19 +00:00
Roland Schwarz
71358d8842 Allow examples to be built out of boost source tree.
[SVN r34584]
2006-07-17 10:19:36 +00:00
Roland Schwarz
5366b629d3 Fallback to time if neither gettimeofday nor clock_gettime available.
[SVN r34583]
2006-07-17 10:17:12 +00:00
Roland Schwarz
01b2d5c088 bbv1 Jamfile restructured
[SVN r34582]
2006-07-17 10:15:17 +00:00
Roland Schwarz
8d22f58bc3 Native files now without platform tag.
[SVN r34581]
2006-07-17 10:12:43 +00:00
Anthony Williams
be64ba98b3 Ensure all checks are guarded by a mutex, to avoid race conditions in the test library
[SVN r34503]
2006-07-10 20:53:56 +00:00
Roland Schwarz
ad551dd333 xtime source added
[SVN r34318]
2006-06-16 13:40:30 +00:00
Anthony Williams
1e055e618d try_lock should throw if already locked
[SVN r34313]
2006-06-15 20:10:42 +00:00
Anthony Williams
46064d1b20 Added test to ensure that try_lock locks if not already locked
[SVN r34312]
2006-06-15 20:01:37 +00:00
Anthony Williams
08cf6a81a5 Changes test_scoped_try_lock over to being a templated test case
[SVN r34300]
2006-06-14 07:52:29 +00:00
Anthony Williams
8ce25c6ecd Changed scoped_lock_test to templated test case, in order to get better error messages
[SVN r34299]
2006-06-14 07:48:05 +00:00
Anthony Williams
01f93931cb timed_mutex and recursive_timed_mutex have scoped_locks
[SVN r34298]
2006-06-14 07:31:13 +00:00