1 package org.simgrid.msg;
2 /** A mutex implemented on top of SimGrid synchronization mechanisms.
3 * You can use it exactly the same way that you use the mutexes,
4 * but to handle the interactions between the threads within the simulation.
6 * Copyright 2012 The SimGrid team. All right reserved.
8 * This program is free software; you can redistribute
9 * it and/or modify it under the terms of the license
10 * (GNU LGPL) which comes with this package.
14 private long bind; // The C object -- don't touch it
16 public Mutex(int capa) {
19 private native void init(int capacity);
20 public native void acquire();
21 public native void release();