2
0
mirror of https://github.com/boostorg/thread.git synced 2026-01-22 17:52:18 +00:00

Commit Graph

  • d57be95047 Templated more tests Anthony Williams 2006-06-08 14:48:46 +00:00
  • 1d1989bbfe Templated test_initially_locked_with_bool_parameter_true Anthony Williams 2006-06-08 14:42:41 +00:00
  • 11178cdc84 Templated test_initially_locked, and applied to boost::try_mutex::scoped_lock too Anthony Williams 2006-06-08 14:40:43 +00:00
  • 54d37cd6af Added more checks round scoped_lock concept Anthony Williams 2006-06-08 14:33:29 +00:00
  • ede873549b Throw lock error if we try and unlock twice Anthony Williams 2006-06-08 14:24:23 +00:00
  • 83a2a4ec38 Started to add tests for locking concepts; ensure mutex::scoped_lock throws when try to lock if already locked Anthony Williams 2006-06-08 14:12:10 +00:00
  • 29e3665ead scoped_read_lock calls m.cond.notify_one, so it passes test Anthony Williams 2006-06-08 09:57:00 +00:00
  • 811a03f281 Updated Borland workaround Nicola Musatti 2006-05-05 21:13:45 +00:00
  • acd9b9db7e Two tests in Anthony Williams 2006-05-02 09:23:33 +00:00
  • 71c652dd9f Basic condition-based read-write mutex Anthony Williams 2006-04-28 08:20:18 +00:00
  • 6afcf7615d Use headers from most general point rather than most specific Anthony Williams 2006-04-27 21:07:30 +00:00
  • 70302577f9 Empty read_write_mutex supports any number of readers Anthony Williams 2006-04-27 20:39:36 +00:00
  • b5fdb39877 Updated to fix line endings Anthony Williams 2006-04-27 14:04:45 +00:00
  • 26f3f0fd2d Changed the Comparison for the condition-based test in test_timedlock to state what we really mean Anthony Williams 2006-04-27 14:03:39 +00:00
  • 9683e0f1cc Added patch from http://lists.boost.org/Archives/boost/2005/05/86395.php to fix bug https://sourceforge.net/tracker/index.php?func=detail&aid=1424965&group_id=7586&atid=107586 Anthony Williams 2006-04-25 10:06:38 +00:00
  • 2528bd0b8f Added patch from http://lists.boost.org/Archives/boost/2005/05/86395.php to fix bug https://sourceforge.net/tracker/index.php?func=detail&aid=1424965&group_id=7586&atid=107586 Anthony Williams 2006-04-25 10:06:38 +00:00
  • 562a748bc6 Moved more stuff over to new platform layout; made tests work on win32 Anthony Williams 2006-04-12 16:48:10 +00:00
  • 45ca67ec26 obsolete code Roland Schwarz 2006-04-11 22:23:47 +00:00
  • 65f466c813 platform split Roland Schwarz 2006-04-11 19:54:45 +00:00
  • 2b37cee9e5 platform split Roland Schwarz 2006-04-11 19:49:21 +00:00
  • ad33e705b2 platform split Roland Schwarz 2006-04-11 19:42:57 +00:00
  • a639fe4dbe platform split Roland Schwarz 2006-04-11 19:35:10 +00:00
  • 8806d38775 platform split Roland Schwarz 2006-04-11 19:24:06 +00:00
  • ed587be470 Merge from trunk Vladimir Prus 2006-04-07 14:01:36 +00:00
  • 674ae6d571 Remove declaration of 'pthread'. It was hack Vladimir Prus 2006-04-07 14:00:27 +00:00
  • 03eb1feb95 This commit was manufactured by cvs2svn to create tag 'thread_rewrite_1'. svn-tags/thread_rewrite_1 nobody 2006-04-06 09:13:23 +00:00
  • ba49aaa0f7 Added "unspecified" read-write sync policy, for use in read-write mutex tests Anthony Williams 2006-04-06 09:13:22 +00:00
  • 1a92100467 Don't make qualified calls where we don't have to Anthony Williams 2006-04-05 11:46:12 +00:00
  • ef6dc83fa8 Use BOOST_INTERLOCKED_EXCHANGE_ADD in preference to BOOST_INTERLOCKED_COMPARE_EXCHANGE, since this should be faster Anthony Williams 2006-04-05 11:45:11 +00:00
  • 48f550d403 Updated copyright Anthony Williams 2006-04-05 11:43:07 +00:00
  • 3c9be720b8 Simplified code by extracting create_once_mutex, so the essence of call_once is clarified. Use boost::detail::interlocked_read rather than BOOST_INTERLOCKED_COMPARE_EXCHANGE to check flag value Anthony Williams 2006-04-05 11:42:07 +00:00
  • b3ba8802bf Better express intent in structure of call_once Anthony Williams 2006-03-23 16:11:52 +00:00
  • 690d44e2e6 Setup usage requirements for dllimport/dllexport. Vladimir Prus 2006-03-22 08:49:42 +00:00
  • 55b48874a4 This commit was manufactured by cvs2svn to create branch 'RC_1_34_0'. nobody 2006-03-21 02:26:31 +00:00
  • 0fddf00c8f Removed using declaration for get_active_count, since we don't need it, and VC6 moans about it Anthony Williams 2006-03-20 22:08:33 +00:00
  • bb7976f666 Tidied up access for condition members Anthony Williams 2006-03-14 23:43:23 +00:00
  • 3ad4fb38b5 Eliminated redundant #ifdef parts Anthony Williams 2006-03-13 17:00:46 +00:00
  • deaccce853 Corrected #ifdefs for WINTHREADS Anthony Williams 2006-03-13 10:07:49 +00:00
  • 6aabcaac5c Added appropriate support for QueueUserAPC condition implementation Anthony Williams 2006-03-13 08:29:17 +00:00
  • d07407306f Added boost::detail::get_xtime_sentinel, which always yields 2^32-1 (INFINITE) seconds until expiry Anthony Williams 2006-03-13 08:14:16 +00:00
  • 4231423773 Reduced duplication by extracting do_notify_one Anthony Williams 2006-03-10 10:54:27 +00:00
  • 46b66d5268 Reduced scope of locking Anthony Williams 2006-03-10 10:33:37 +00:00
  • 9c439a73db Inlined barrier code, new implementation of condition based on QueueUserAPC. Blocks all waits and notifies whilst notifying. Anthony Williams 2006-03-10 10:07:01 +00:00
  • cdd57f50ef Added recursive_timed_mutex Anthony Williams 2006-03-09 11:13:29 +00:00
  • 8c2ded3235 Win32 implementation of boost::timed_mutex Anthony Williams 2006-03-08 22:24:52 +00:00
  • d3b590f213 Assert rather than throw when using checked mutexes Anthony Williams 2006-03-06 09:47:09 +00:00
  • 7fcdd5d9e2 Added basic_checked_mutex, and make use of it dependent on BOOST_USE_CHECKED_MUTEX Anthony Williams 2006-03-03 09:35:41 +00:00
  • 9ceee4b030 New implementations of mutex and recursive mutex for win32 Anthony Williams 2006-02-28 11:27:19 +00:00
  • 720ccdb474 See the BOOST_THREAD_BUILD_DLL and BOOST_THREAD_BUILD_LIB defines as appropriate. Vladimir Prus 2006-02-14 07:11:15 +00:00
  • a556ff6560 Update Jamfile.v2 Vladimir Prus 2006-02-07 12:49:34 +00:00
  • 33c0af8253 Update Jamfile.v2 Vladimir Prus 2006-02-07 11:23:34 +00:00
  • 50f8f34ab8 Simplified wait functions Anthony Williams 2006-01-24 11:24:00 +00:00
  • 86072f95ac Update libs/thread/example/Jamfile.v2 Vladimir Prus 2006-01-10 08:14:25 +00:00
  • c7b96bcd7d -- bug #548104 ( http://sourceforge.net/tracker/index.php?func=detail&aid=548104&group_id=7586&atid=107586 ) Martin Wille 2006-01-06 09:35:28 +00:00
  • 572c18302f Bug #1239052 Marshall Clow 2006-01-05 00:46:16 +00:00
  • efd1bdec23 Bug #1364416 Marshall Clow 2006-01-05 00:45:43 +00:00
  • ba86f9ff13 Merged from Version_1_33_1 Douglas Gregor 2005-12-08 04:19:11 +00:00
  • 2c62ce3ede This commit was manufactured by cvs2svn to create tag 'Version_1_33_1'. boost-1.33.1 nobody 2005-12-05 14:04:06 +00:00
  • 44686a8ded Fix "thrd thrd" problem. svn-branches/RC_1_33_0 Douglas Gregor 2005-12-04 18:11:08 +00:00
  • 78ebe472e7 This commit was manufactured by cvs2svn to create tag 'merged_to_RC_1_33_0'. svn-tags/merged_to_RC_1_33_0 nobody 2005-12-01 13:06:58 +00:00
  • 56b07cb5c0 Bring dynamic linking into line with the rest of Boost. John Maddock 2005-11-12 10:23:25 +00:00
  • d76e67ffe2 Updated tests, to ensure unblocked_count is guarded by mutex when reading, and added new test for unblocking only one writer Anthony Williams 2005-11-12 10:21:39 +00:00
  • 283ce1df6c This commit was manufactured by cvs2svn to create tag 'Version_1_33_1_beta'. boost-1.33.1-beta1 nobody 2005-11-08 23:18:41 +00:00
  • e552e010fd Remove the broken read_write_mutex Douglas Gregor 2005-10-16 14:37:34 +00:00
  • 617729f2ae Added new test for unblocking all readers to read_write_mutex code. Added necessary implementation. Anthony Williams 2005-09-26 07:09:09 +00:00
  • e8363511d0 Moved BOOST_INTERLOCKED_READ stuff into its own header Anthony Williams 2005-09-23 17:24:29 +00:00
  • 358e32e98f Remove <runtime-link>static requirement: it's not universally supported. John Maddock 2005-09-23 15:09:33 +00:00
  • c52357636b Remove <runtime-link>static requirement: it's not universally supported. John Maddock 2005-09-23 15:09:33 +00:00
  • 4749f47f00 Verify that only one writer permitted at once Anthony Williams 2005-09-20 22:09:49 +00:00
  • 07af8a5605 Removed duplication between reader_thread and writer_thread into a template locking_thread Anthony Williams 2005-09-20 21:51:02 +00:00
  • cc89b8d2c6 A locked reader blocks a waiting writer Anthony Williams 2005-09-20 21:42:45 +00:00
  • 946d45ee70 Added brute force test for multiple readers Anthony Williams 2005-09-20 21:20:31 +00:00
  • 8a3b5145ac reverted QueueUserAPC changes Anthony Williams 2005-09-20 07:27:35 +00:00
  • 1af9fb7267 Wake up threads using QueueUserAPC rather than triggering the semaphore. Anthony Williams 2005-09-19 22:31:21 +00:00
  • 6fe2e36fb0 Put a mutex around the increment in init_once_value, to ensure that if two threads call init_once_value, the increment is done correctly. Anthony Williams 2005-09-19 21:09:14 +00:00
  • e5ada85386 Extended stress test: 100 threads, loop 100 times on same thread. Anthony Williams 2005-09-19 20:59:49 +00:00
  • a9760cd2e6 Added test to verify that threads block on a mutex, and only one waiting thread is released when the mutex is unlocked. Anthony Williams 2005-09-19 15:11:41 +00:00
  • 3e0ce8d25a Added a looping test to check for cross-thread sync problems Anthony Williams 2005-09-17 22:20:35 +00:00
  • 7d59bbbad5 Set semaphore handle back to NULL on destruction Anthony Williams 2005-09-16 13:58:44 +00:00
  • c7a85f366c New read_write_mutex implementation for win32. No try/timed varieties, and no support for read/write priority policies. Anthony Williams 2005-09-15 10:47:29 +00:00
  • 8b3773f157 Trimmed included headers Anthony Williams 2005-09-14 15:44:28 +00:00
  • cb27585fa2 Added new implementation of timed_mutex for win32 Anthony Williams 2005-09-14 15:20:24 +00:00
  • d3ee1b804a Added new implementation of timed_mutex for win32 Anthony Williams 2005-09-14 15:10:41 +00:00
  • 48ff760e18 Remove references to WINTHREADS from the generic code, as windows threads handled in separate header Anthony Williams 2005-09-14 12:49:52 +00:00
  • ba0bdc6489 Use lightweight_mutex for mutex impl. Added basic condition implementation. Anthony Williams 2005-09-14 12:43:02 +00:00
  • 953461904c Added licence text Anthony Williams 2005-09-14 10:44:27 +00:00
  • c956bc9ad7 Moved lightweight_mutex_win32.hpp and mutex_win32.hpp into boost source tree Anthony Williams 2005-09-14 10:35:12 +00:00
  • 91d88bb24a Added lightweight_mutex_win32.hpp Anthony Williams 2005-09-14 10:18:33 +00:00
  • 01297016bd Reverted trunk to before adding new threads code Anthony Williams 2005-09-13 18:44:59 +00:00
  • 545a0f5c86 This commit was manufactured by cvs2svn to create branch 'thread_rewrite'. nobody 2005-09-13 14:20:32 +00:00
  • 64b5b67661 Updated thread primitives to include semaphore functions Anthony Williams 2005-09-13 14:20:31 +00:00
  • b6f0ec7fd9 Moved win32 thread sync primitives to their own file Anthony Williams 2005-09-13 13:48:01 +00:00
  • e9c0b5e0c5 Nibble mask is 0x0f, not 0x7f Anthony Williams 2005-09-09 12:51:17 +00:00
  • 4a005ea288 New version of call_once for win32 Anthony Williams 2005-09-07 15:02:16 +00:00
  • 2cb4dbb07f Added config and header include changes needed to support MSVC + STLport 5.0. John Maddock 2005-08-27 10:25:15 +00:00
  • 9658b69af4 Added config and header include changes needed to support MSVC + STLport 5.0. John Maddock 2005-08-27 10:25:15 +00:00
  • e3c9446e29 Merged from 1.33.0 release Douglas Gregor 2005-08-12 13:02:37 +00:00
  • 38592947ba This commit was manufactured by cvs2svn to create tag 'Version_1_33_0'. boost-1.33.0 nobody 2005-08-12 03:25:34 +00:00
  • 9ca3c5b13f Be slightly more forgiving about timing Douglas Gregor 2005-08-05 13:17:42 +00:00
  • 7445f79dd4 This commit was manufactured by cvs2svn to create branch 'RC_1_33_0'. nobody 2005-07-28 18:22:24 +00:00