X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=threads.cc;h=6b4e2c740ab50b7b55f624b7bda05a4c9ad72678;hb=fc32611957cecd106751b62bc4de4aeddc9af56c;hp=dc2db2d9bfefcab57458035f3f4bc815b75b5fc5;hpb=616746ec12aae78b0d0262c009568109686cb000;p=model-checker.git diff --git a/threads.cc b/threads.cc index dc2db2d..6b4e2c7 100644 --- a/threads.cc +++ b/threads.cc @@ -34,8 +34,6 @@ Thread * thread_current(void) * Provides a startup wrapper for each thread, allowing some initial * model-checking data to be recorded. This method also gets around makecontext * not being 64-bit clean - * @todo We should make the START event always immediately follow the - * CREATE event, so we don't get redundant traces... */ void thread_startup() { @@ -161,7 +159,7 @@ Thread::Thread(thrd_t *t, void (*func)(void *), void *a) : /* Initialize state */ ret = create_context(); if (ret) - printf("Error in create_context\n"); + model_print("Error in create_context\n"); id = model->get_next_id(); *user_thread = id; @@ -176,7 +174,7 @@ Thread::~Thread() } /** @return The thread_id_t corresponding to this Thread object. */ -thread_id_t Thread::get_id() +thread_id_t Thread::get_id() const { return id; }