/** Check if there is a communication going on in a mailbox. */
bool listen();
+ /** Look if there is a communication going on in a mailbox and return the PID of the sender actor */
+ aid_t listen_from();
+
/** Check if there is a communication ready to be consumed from a mailbox. */
bool ready();
/** Creates and start a data transmission to that mailbox */
CommPtr put_async(void* data, uint64_t simulated_size_in_bytes);
- smx_activity_t iprobe(int type, bool (*match_fun)(void*, void*, kernel::activity::CommImpl*), void* data);
+ kernel::activity::ActivityImplPtr iprobe(int type, bool (*match_fun)(void*, void*, kernel::activity::CommImpl*),
+ void* data);
/** Blocking data transmission */
void put(void* payload, uint64_t simulated_size_in_bytes);
/** Blocking data transmission with timeout */