1 /* Copyright (c) 2006-2015. The SimGrid Team.
2 * All rights reserved. */
4 /* This program is free software; you can redistribute it and/or modify it
5 * under the terms of the license (GNU LGPL) which comes with this package. */
8 #include "src/msg/msg_private.h"
9 #include "src/simix/smx_network_private.h"
11 #include "simgrid/s4u/mutex.hpp"
17 simcall_mutex_lock(mutex_);
20 void Mutex::unlock() {
21 simcall_mutex_unlock(mutex_);
24 bool Mutex::try_lock() {
25 return simcall_mutex_trylock(mutex_);