2
0
mirror of https://github.com/boostorg/sync.git synced 2026-01-19 04:42:12 +00:00

28 Commits

Author SHA1 Message Date
Andrey Semashev
f26e448703 Added support for modular b2.
This adds explicit specification of all library dependencies, which is
necessary for modular b2 builds and also for tracking usage requirements
from the dependencies.

This also introduces a new boost_sync_with_support target, which
provides a dependency on the main Boost.Sync library, as well as any
additional dependencies that are needed for support headers.
2025-08-27 18:05:46 +03:00
Franz Detro
8a26db61ab fix boost deprecated header warnings 2021-02-05 14:18:41 +01:00
Andrey Semashev
4d75adf846 Added a workaround for the case when std::time performs rounding. 2019-10-13 23:26:20 +03:00
Andrey Semashev
7df0b2f16c Removed linking with Boost.System.
Since Boost.System is now header-only, remove linking with the library.
2019-01-14 20:23:16 +03:00
Andrey Semashev
ffd2a86d5f Ported tests to lightweight_test.hpp.
This will allow to work around compilation warnings and errors on
MinGW coming from Boost.Test.
2019-01-03 21:22:44 +03:00
Tim Blechmann
9e9b259799 semaphores: fix race condition in wait_until
wait_until used to return `false` in case the semaphore was posted, but
the timeout has already exceeded at the time of the call
2018-12-06 13:49:55 +08:00
Andrey Semashev
6ff3d05f5b Disabled thread_specific_ptr tests with custom deleters with UBSan.
The implementation uses the deleter type erasure as an optimization, which is
strictly speaking not standard C++, but works in practice. The fact that
it works is verified by the tests.
2018-11-14 01:05:31 +03:00
Andrey Semashev
58988bffcc Nonessential. 2018-11-13 22:01:39 +03:00
Andrey Semashev
9d83b8446c Fixed compilation on FreeBSD.
[SVN r86560]
2013-11-04 12:53:53 +00:00
Tim Blechmann
ca529a1709 sync: add shared_spin_mutex
[SVN r86494]
2013-10-28 10:05:25 +00:00
Andrey Semashev
75485b52ca Fixed compilation with gcc.
[SVN r86481]
2013-10-27 16:22:39 +00:00
Andrey Semashev
6ad2dc87cd Added more tests.
[SVN r86480]
2013-10-27 16:11:25 +00:00
Tim Blechmann
18f6670cd9 sync: introduce spin_mutex
[SVN r86447]
2013-10-26 12:32:33 +00:00
Andrey Semashev
f4db2ab189 Implemented notify_all_at_thread_exit, condition_variable_any and manual_reset_event (emulation). Timed mutex tests re-enabled. Added support for compiler-based TLS on non-Windows targets.
[SVN r86428]
2013-10-25 16:35:13 +00:00
Andrey Semashev
b6e25c6d10 Fixed compilation on Windows.
[SVN r86391]
2013-10-22 14:04:00 +00:00
Andrey Semashev
eb00dacf07 Made timed_mutex incompatible with condition variable when mutex_timedwait is not available. The test had to be disabled for now because it requires condition_variable_any.
[SVN r86367]
2013-10-20 13:54:27 +00:00
Andrey Semashev
aee4acc3ae Enabled CV and timed mutex tests.
[SVN r86363]
2013-10-19 16:14:35 +00:00
Andrey Semashev
6516bf9735 Events separated into different headers and ported to the time units abstraction layer.
[SVN r86351]
2013-10-18 14:00:03 +00:00
Andrey Semashev
5aebb54489 Ported semaphore implementation to the time units abstraction layer.
[SVN r86326]
2013-10-15 16:49:34 +00:00
Andrey Semashev
8825ea4463 Completed Windows CV, ported test utils to Boost.Sync primitives.
[SVN r86212]
2013-10-09 14:11:50 +00:00
Tim Blechmann
aa829aeada sync: event - split event into auto_reset_event and manual_reset_event
[SVN r85978]
2013-09-28 08:58:43 +00:00
Andrey Semashev
925d03aa9f Added support for more time libraries.
[SVN r85829]
2013-09-22 12:48:29 +00:00
Andrey Semashev
c49f7f1e8a Ported timed mutex for Windows. Changed time units to allow for non-system clocks. Minor fixes.
[SVN r85811]
2013-09-21 19:03:30 +00:00
Andrey Semashev
3ea72f8b28 Bug fixes. Preliminary test for mutex added.
[SVN r85794]
2013-09-19 20:27:08 +00:00
Andrey Semashev
009a37c3dc Removed use of the deprecated test_exec_monitor.
[SVN r85792]
2013-09-19 19:27:41 +00:00
Tim Blechmann
e8e9363d6a sync: event - implement event with mach semaphores
[SVN r85773]
2013-09-18 11:38:52 +00:00
Tim Blechmann
8c0eb984f0 sync: introduce win32-style event class
[SVN r85719]
2013-09-17 09:59:24 +00:00
Tim Blechmann
a2a837e785 sync: add semaphore implementation
[SVN r85673]
2013-09-15 10:46:54 +00:00