X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=model.h;h=85101fee11931f581c1d8812737b0532d20b693b;hb=dbb1bb205f35f076cf2d82ec443415d858b22e2f;hp=081a8ce603bcba39728c2a30bf59ddb9c3261649;hpb=9c9c1ce811e8f0d23bb6c610813ed74a8d3d0aff;p=model-checker.git diff --git a/model.h b/model.h index 081a8ce..85101fe 100644 --- a/model.h +++ b/model.h @@ -87,6 +87,9 @@ public: Thread * get_thread(thread_id_t tid) const; Thread * get_thread(ModelAction *act) const; + bool is_enabled(Thread *t) const; + bool is_enabled(thread_id_t tid) const; + thread_id_t get_next_id(); unsigned int get_num_threads() const; Thread * get_current_thread(); @@ -112,7 +115,6 @@ public: void set_bad_synchronization() { bad_synchronization = true; } const model_params params; - Scheduler * get_scheduler() { return scheduler;} Node * get_curr_node(); MEMALLOC @@ -176,17 +178,17 @@ private: /** Per-object list of actions. Maps an object (i.e., memory location) * to a trace of all actions performed on the object. */ - HashTable *obj_map; + HashTable *obj_map; /** Per-object list of actions. Maps an object (i.e., memory location) * to a trace of all actions performed on the object. */ - HashTable *lock_waiters_map; + HashTable *lock_waiters_map; /** Per-object list of actions. Maps an object (i.e., memory location) * to a trace of all actions performed on the object. */ - HashTable *condvar_waiters_map; + HashTable *condvar_waiters_map; - HashTable, uintptr_t, 4 > *obj_thrd_map; + HashTable *, uintptr_t, 4 > *obj_thrd_map; std::vector< Promise *, SnapshotAlloc > *promises; std::vector< struct PendingFutureValue, SnapshotAlloc > *futurevalues;