/* 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. */
}
int crasher(int argc, char *argv[]);
int crasher(int argc, char *argv[])
{
int i;
}
int crasher(int argc, char *argv[]);
int crasher(int argc, char *argv[])
{
int i;
/* initializations of the philosopher mecanisms */
id = xbt_new0(int, crasher_amount);
/* initializations of the philosopher mecanisms */
id = xbt_new0(int, crasher_amount);
for (i = 0; i < crasher_amount; i++) {
char *name = bprintf("thread %d", i);
crashers[i] =
for (i = 0; i < crasher_amount; i++) {
char *name = bprintf("thread %d", i);
crashers[i] =
- xbt_thread_create(name, &crasher_thread, &id[i], 1 /* joinable */ );
+ xbt_os_thread_create(name, &crasher_thread, &id[i], NULL );