Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Go to the documentation of this file.
17 #ifndef __TBB_concurrent_monitor_H
18 #define __TBB_concurrent_monitor_H
115 tbb::aligned_space<binary_semaphore>
sema;
131 void prepare_wait( thread_context& thr, uintptr_t ctx = 0 );
153 template<
typename WaitUntil,
typename Context>
154 void wait( WaitUntil until, Context on );
187 template<
typename WaitUntil,
typename Context>
216 if( predicate( thr->
context ) ) {
__TBB_atomic size_t count
A lock that occupies a single byte.
void cancel_wait(thread_context &thr)
Cancel the wait. Removes the thread from the wait queue if not removed yet.
Circular doubly-linked list with sentinel.
binary_semaphore for concurrent monitor
tbb::aligned_space< binary_semaphore > sema
void notify_relaxed(const P &predicate)
Notify waiting threads of the event that satisfies the given predicate; Relaxed version.
~concurrent_monitor()
dtor
__TBB_atomic unsigned epoch
void const char const char int ITT_FORMAT __itt_group_sync x void const char ITT_FORMAT __itt_group_sync s void ITT_FORMAT __itt_group_sync p void ITT_FORMAT p void ITT_FORMAT p no args __itt_suppress_mode_t unsigned int void size_t ITT_FORMAT d void ITT_FORMAT p void ITT_FORMAT p __itt_model_site __itt_model_site_instance ITT_FORMAT p __itt_model_task __itt_model_task_instance ITT_FORMAT p void ITT_FORMAT p void ITT_FORMAT p void size_t ITT_FORMAT d void ITT_FORMAT p const wchar_t ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s const char ITT_FORMAT s no args void ITT_FORMAT p size_t ITT_FORMAT d no args const wchar_t const wchar_t ITT_FORMAT s __itt_heap_function void size_t int ITT_FORMAT d __itt_heap_function void ITT_FORMAT p __itt_heap_function void void size_t int ITT_FORMAT d no args no args unsigned int ITT_FORMAT u const __itt_domain __itt_id ITT_FORMAT lu const __itt_domain __itt_id __itt_id __itt_string_handle ITT_FORMAT p const __itt_domain __itt_id ITT_FORMAT p const __itt_domain __itt_id __itt_timestamp __itt_timestamp end
#define __TBB_ASSERT(predicate, comment)
No-op version of __TBB_ASSERT.
Base class for types that should not be copied or assigned.
void abort_all()
Abort any sleeping threads at the time of the call.
void throw_exception(exception_id eid)
Versionless convenience wrapper for throw_exception_v4()
thread_context * to_thread_context(waitset_node_t *n)
void wait(WaitUntil until, Context on)
Wait for a condition to be satisfied with waiting-on context.
void prepare_wait(thread_context &thr, uintptr_t ctx=0)
prepare wait by inserting 'thr' into the wait queue
binary_semaphore & semaphore()
__TBB_atomic unsigned epoch
void __TBB_store_relaxed(volatile T &location, V value)
void remove(node_t &n)
remove node 'n'
circular_doubly_linked_list_with_sentinel()
~circular_doubly_linked_list_with_sentinel()
void notify(const P &predicate)
Notify waiting threads of the event that satisfies the given predicate.
circular_doubly_linked_list_with_sentinel waitset_t
__TBB_NOINLINE(void init())
The method for lazy initialization of the thread_context's semaphore.
void notify_all()
Notify all waiting threads of the event.
void notify_all_relaxed()
Notify all waiting threads of the event; Relaxed version.
void abort_all_relaxed()
Abort any sleeping threads at the time of the call; Relaxed version.
const node_t * end() const
void notify_one()
Notify one thread about the event.
circular_doubly_linked_list_with_sentinel::node_t waitset_node_t
void atomic_fence()
Sequentially consistent full memory fence.
bool commit_wait(thread_context &thr)
Commit wait if event count has not changed; otherwise, cancel wait.
Represents acquisition of a mutex.
tbb::atomic< bool > in_waitset
void add(node_t *n)
add to the back of the list
void notify_one_relaxed()
Notify one thread about the event. Relaxed version.
T __TBB_load_relaxed(const volatile T &location)
void flush_to(circular_doubly_linked_list_with_sentinel &lst)
move all elements to 'lst' and initialize the 'this' list
Copyright © 2005-2020 Intel Corporation. All Rights Reserved.
Intel, Pentium, Intel Xeon, Itanium, Intel XScale and VTune are
registered trademarks or trademarks of Intel Corporation or its
subsidiaries in the United States and other countries.
* Other names and brands may be claimed as the property of others.