A
lgorithmique
N
umérique
D
istribuée
Public GIT Repository
projects
/
simgrid.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rename simix::Mutex to simix::MutexImpl
[simgrid.git]
/
src
/
simix
/
smx_synchro.cpp
diff --git
a/src/simix/smx_synchro.cpp
b/src/simix/smx_synchro.cpp
index
35b240f
..
2095a4c
100644
(file)
--- a/
src/simix/smx_synchro.cpp
+++ b/
src/simix/smx_synchro.cpp
@@
-98,7
+98,7
@@
void SIMIX_synchro_finish(smx_activity_t synchro)
namespace simgrid {
namespace simix {
namespace simgrid {
namespace simix {
-Mutex
::Mutex
() : mutex_(this)
+Mutex
Impl::MutexImpl
() : mutex_(this)
{
XBT_IN("(%p)", this);
// Useful to initialize sleeping swag:
{
XBT_IN("(%p)", this);
// Useful to initialize sleeping swag:
@@
-107,14
+107,14
@@
Mutex::Mutex() : mutex_(this)
XBT_OUT();
}
XBT_OUT();
}
-Mutex
::~Mutex
()
+Mutex
Impl::~MutexImpl
()
{
XBT_IN("(%p)", this);
xbt_swag_free(this->sleeping);
XBT_OUT();
}
{
XBT_IN("(%p)", this);
xbt_swag_free(this->sleeping);
XBT_OUT();
}
-void Mutex::lock(smx_actor_t issuer)
+void Mutex
Impl
::lock(smx_actor_t issuer)
{
XBT_IN("(%p; %p)", this, issuer);
/* FIXME: check where to validate the arguments */
{
XBT_IN("(%p; %p)", this, issuer);
/* FIXME: check where to validate the arguments */
@@
-141,7
+141,7
@@
void Mutex::lock(smx_actor_t issuer)
* \param issuer the process that tries to acquire the mutex
* \return whether we managed to lock the mutex
*/
* \param issuer the process that tries to acquire the mutex
* \return whether we managed to lock the mutex
*/
-bool Mutex::try_lock(smx_actor_t issuer)
+bool Mutex
Impl
::try_lock(smx_actor_t issuer)
{
XBT_IN("(%p, %p)", this, issuer);
if (this->locked) {
{
XBT_IN("(%p, %p)", this, issuer);
if (this->locked) {
@@
-161,7
+161,7
@@
bool Mutex::try_lock(smx_actor_t issuer)
* If the unlocker is not the owner of the mutex nothing happens.
* If there are no process waiting, it sets the mutex as free.
*/
* If the unlocker is not the owner of the mutex nothing happens.
* If there are no process waiting, it sets the mutex as free.
*/
-void Mutex::unlock(smx_actor_t issuer)
+void Mutex
Impl
::unlock(smx_actor_t issuer)
{
XBT_IN("(%p, %p)", this, issuer);
if (not this->locked)
{
XBT_IN("(%p, %p)", this, issuer);
if (not this->locked)
@@
-207,7
+207,7
@@
void SIMIX_mutex_unref(smx_mutex_t mutex)
smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall)
{
smx_mutex_t simcall_HANDLER_mutex_init(smx_simcall_t simcall)
{
- return new simgrid::simix::Mutex();
+ return new simgrid::simix::Mutex
Impl
();
}
// Simcall handlers:
}
// Simcall handlers: