2 #include "../acl_cpp_define.hpp" 11 void mbox_free(
void*,
void (*free_fn)(
void*));
61 mbox(
bool free_obj =
true,
bool mpsc =
true)
70 mbox_free(mbox_, free_obj_ ? mbox_free_fn : NULL);
79 bool push(T* t,
bool dummy =
false)
93 T*
pop(
int timeout = -1,
bool* success = NULL)
95 return (T*)
mbox_read(mbox_, timeout, success);
120 static void mbox_free_fn(
void* o)
void * mbox_create(bool mpsc)
size_t pop_count(void) const
size_t mbox_nsend(void *)
bool mbox_send(void *, void *)
mbox(bool free_obj=true, bool mpsc=true)
void * mbox_read(void *, int, bool *)
void mbox_free(void *, void(*free_fn)(void *))
T * pop(int timeout=-1, bool *success=NULL)
bool push(T *t, bool dummy=false)
size_t mbox_nread(void *)
size_t push_count(void) const