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
Remove usage of xbt_assert[0-9].
[simgrid.git]
/
src
/
simix
/
smx_synchro.c
diff --git
a/src/simix/smx_synchro.c
b/src/simix/smx_synchro.c
index
378e904
..
aed9f50
100644
(file)
--- a/
src/simix/smx_synchro.c
+++ b/
src/simix/smx_synchro.c
@@
-350,7
+350,7
@@
void SIMIX_cond_destroy(smx_cond_t cond)
XBT_DEBUG("Destroy condition %p", cond);
if (cond != NULL) {
XBT_DEBUG("Destroy condition %p", cond);
if (cond != NULL) {
- xbt_assert
0
(xbt_swag_size(cond->sleeping) == 0,
+ xbt_assert(xbt_swag_size(cond->sleeping) == 0,
"Cannot destroy conditional since someone is still using it");
xbt_swag_free(cond->sleeping);
"Cannot destroy conditional since someone is still using it");
xbt_swag_free(cond->sleeping);
@@
-376,7
+376,7
@@
void SIMIX_sem_destroy(smx_sem_t sem)
{
XBT_DEBUG("Destroy semaphore %p", sem);
if (sem != NULL) {
{
XBT_DEBUG("Destroy semaphore %p", sem);
if (sem != NULL) {
- xbt_assert
0
(xbt_swag_size(sem->sleeping) == 0,
+ xbt_assert(xbt_swag_size(sem->sleeping) == 0,
"Cannot destroy semaphore since someone is still using it");
xbt_swag_free(sem->sleeping);
xbt_free(sem);
"Cannot destroy semaphore since someone is still using it");
xbt_swag_free(sem->sleeping);
xbt_free(sem);