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
Let the exception flow.
[simgrid.git]
/
src
/
bindings
/
java
/
jmsg_synchro.cpp
diff --git
a/src/bindings/java/jmsg_synchro.cpp
b/src/bindings/java/jmsg_synchro.cpp
index
1856342
..
021dcce
100644
(file)
--- a/
src/bindings/java/jmsg_synchro.cpp
+++ b/
src/bindings/java/jmsg_synchro.cpp
@@
-1,6
+1,6
@@
/* Java bindings of the Synchronization API. */
/* Java bindings of the Synchronization API. */
-/* Copyright (c) 2012-201
8
. The SimGrid Team. All rights reserved. */
+/* Copyright (c) 2012-201
9
. The SimGrid Team. All rights reserved. */
/* 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. */
/* 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. */
@@
-28,11
+28,7
@@
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_init(JNIEnv * env, jobject obj
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj) {
xbt_mutex_t mutex = (xbt_mutex_t)(uintptr_t)env->GetLongField(obj, jsynchro_field_Mutex_bind);
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_acquire(JNIEnv * env, jobject obj) {
xbt_mutex_t mutex = (xbt_mutex_t)(uintptr_t)env->GetLongField(obj, jsynchro_field_Mutex_bind);
- try {
- xbt_mutex_acquire(mutex);
- } catch (xbt_ex const& e) {
- XBT_DEBUG("Caught an exception: %s", e.what());
- }
+ xbt_mutex_acquire(mutex);
}
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj) {
}
JNIEXPORT void JNICALL Java_org_simgrid_msg_Mutex_release(JNIEnv * env, jobject obj) {