#include <threads.h>
#include "common.h"
#include "threads-model.h"
+#include "action.h"
/* global "model" object */
#include "model.h"
/** A no-op, for now */
void thrd_yield(void)
{
- //model->switch_to_master(new ModelAction(THREAD_YIELD, std::memory_order_seq_cst, thread_current(), VALUE_NONE));
+ model->switch_to_master(new ModelAction(THREAD_YIELD, std::memory_order_seq_cst, thread_current(), VALUE_NONE));
}
thrd_t thrd_current(void)