/* This program is free software; you can redistribute it and/or modify it
* under the terms of the license (GNU LGPL) which comes with this package. */
+#include <xbt/ex.hpp>
+
#include "src/simix/smx_private.h" /* MSG_task_listen looks inside the rdv directly. Not clean. */
#include "msg_private.h"
#include "mc/mc.h"
int MSG_task_listen(const char *alias)
{
smx_mailbox_t mbox = MSG_mailbox_get_by_alias(alias);
- return !MSG_mailbox_is_empty(mbox) || (mbox->permanent_receiver && !mbox->done_comm_queue->empty());
+ return !MSG_mailbox_is_empty(mbox) ||
+ (mbox->permanent_receiver && !mbox->done_comm_queue.empty());
}
/** \ingroup msg_task_usage