|
Intel(R) Threading Building Blocks Doxygen Documentation
version 4.2.3
|
Class representing source of mail. More...
#include <mailbox.h>
Public Member Functions | |
| mail_inbox () | |
| Construct unattached inbox. More... | |
| void | attach (mail_outbox &putter) |
| Attach inbox to a corresponding outbox. More... | |
| void | detach () |
| Detach inbox from its outbox. More... | |
| task_proxy * | pop (__TBB_ISOLATION_EXPR(isolation_tag isolation)) |
| Get next piece of mail, or NULL if mailbox is empty. More... | |
| bool | empty () |
| Return true if mailbox is empty. More... | |
| void | set_is_idle (bool value) |
| Indicate whether thread that reads this mailbox is idle. More... | |
| bool | is_idle_state (bool value) const |
| Indicate whether thread that reads this mailbox is idle. More... | |
Private Attributes | |
| mail_outbox * | my_putter |
| Corresponding sink where mail that we receive will be put. More... | |
|
inline |
Construct unattached inbox.
Definition at line 201 of file mailbox.h.
|
inline |
Attach inbox to a corresponding outbox.
Definition at line 204 of file mailbox.h.
References my_putter.
Referenced by tbb::internal::generic_scheduler::attach_mailbox().
|
inline |
Detach inbox from its outbox.
Definition at line 208 of file mailbox.h.
References __TBB_ASSERT, and my_putter.
|
inline |
Return true if mailbox is empty.
Definition at line 217 of file mailbox.h.
References tbb::internal::mail_outbox::empty(), and my_putter.
|
inline |
Indicate whether thread that reads this mailbox is idle.
Definition at line 229 of file mailbox.h.
References tbb::internal::unpadded_mail_outbox::my_is_idle, my_putter, and value.
Referenced by tbb::internal::generic_scheduler::attach_arena().
|
inline |
Get next piece of mail, or NULL if mailbox is empty.
Definition at line 213 of file mailbox.h.
References __TBB_ISOLATION_EXPR, tbb::internal::mail_outbox::internal_pop(), and my_putter.
Referenced by tbb::internal::generic_scheduler::get_mailbox_task().
|
inline |
Indicate whether thread that reads this mailbox is idle.
Raises assertion failure if mailbox is redundantly marked as not idle.
Definition at line 222 of file mailbox.h.
References __TBB_ASSERT, tbb::internal::unpadded_mail_outbox::my_is_idle, my_putter, and value.
Referenced by tbb::internal::generic_scheduler::attach_arena().
|
private |
Corresponding sink where mail that we receive will be put.
Definition at line 198 of file mailbox.h.
Referenced by attach(), detach(), empty(), is_idle_state(), pop(), and set_is_idle().