Branch: Tag:

1998-08-27

1998-08-27 20:43:25 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Added the THREAD_* constants.

Rev: src/threads.c:1.83

1:   #include "global.h" - RCSID("$Id: threads.c,v 1.82 1998/08/24 20:58:38 marcus Exp $"); + RCSID("$Id: threads.c,v 1.83 1998/08/27 20:43:25 grubba Exp $");      int num_threads = 1;   int threads_disabled = 0;
1052:    set_init_callback(init_thread_obj);    set_exit_callback(exit_thread_obj);    thread_id_prog=end_program(); +  +  /* Some constants... */ +  add_integer_constant("THREAD_NOT_STARTED", THREAD_NOT_STARTED, 0); +  add_integer_constant("THREAD_RUNNING", THREAD_RUNNING, 0); +  add_integer_constant("THREAD_EXITED", THREAD_EXITED, 0); +     if(!mutex_key)    fatal("Failed to initialize thread program!\n");