/* 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. */
XBT_LOG_NEW_DEFAULT_CATEGORY(synchro_crashtest, "Logs of this example");
const int test_amount = 99; /* Up to 99 to not break the logs (and thus the testing mechanism) */
XBT_LOG_NEW_DEFAULT_CATEGORY(synchro_crashtest, "Logs of this example");
const int test_amount = 99; /* Up to 99 to not break the logs (and thus the testing mechanism) */
for (int i = 0; i < crasher_amount; i++) {
char name[16];
snprintf(name, sizeof name, "thread %d", i);
for (int i = 0; i < crasher_amount; i++) {
char name[16];
snprintf(name, sizeof name, "thread %d", i);
- crashers[i] = xbt_os_thread_create(name, &crasher_thread, &id[i], NULL );
+ crashers[i] = xbt_os_thread_create(name, &crasher_thread, &id[i]);