remove GLOBAL_executing_workers
This commit is contained in:
@@ -18,8 +18,8 @@
|
||||
/* get a def for NULL */
|
||||
#include <stdlib.h>
|
||||
|
||||
static inline void PUT_IN_EXECUTING(int);
|
||||
static inline void PUT_OUT_EXECUTING(int);
|
||||
static inline void PUT_IN_ROOT_NODE(int);
|
||||
static inline void PUT_OUT_ROOT_NODE(int);
|
||||
static inline void PUT_IN_FINISHED(int);
|
||||
#ifdef TABLING_INNER_CUTS
|
||||
static inline void PUT_IN_PRUNING(int);
|
||||
@@ -213,25 +213,23 @@ static inline qg_sol_fr_ptr CUT_prune_solution_frames(qg_sol_fr_ptr, int);
|
||||
/* ---------------------- **
|
||||
** Engine Stuff **
|
||||
** ---------------------- */
|
||||
|
||||
static inline
|
||||
void PUT_IN_EXECUTING(int w) {
|
||||
LOCK(GLOBAL_locks_bm_executing_workers);
|
||||
BITMAP_insert(GLOBAL_bm_executing_workers, w);
|
||||
UNLOCK(GLOBAL_locks_bm_executing_workers);
|
||||
static inline
|
||||
void PUT_IN_ROOT_NODE(int worker_num) {
|
||||
LOCK(GLOBAL_locks_bm_root_cp_workers);
|
||||
BITMAP_insert(GLOBAL_bm_root_cp_workers, worker_num);
|
||||
UNLOCK(GLOBAL_locks_bm_root_cp_workers);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
static inline
|
||||
void PUT_OUT_EXECUTING(int w) {
|
||||
LOCK(GLOBAL_locks_bm_executing_workers);
|
||||
BITMAP_delete(GLOBAL_bm_executing_workers, w);
|
||||
UNLOCK(GLOBAL_locks_bm_executing_workers);
|
||||
static inline
|
||||
void PUT_OUT_ROOT_NODE(int worker_num) {
|
||||
LOCK(GLOBAL_locks_bm_root_cp_workers);
|
||||
BITMAP_delete(GLOBAL_bm_root_cp_workers, worker_num);
|
||||
UNLOCK(GLOBAL_locks_bm_root_cp_workers);
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
static inline
|
||||
void PUT_IN_FINISHED(int w) {
|
||||
LOCK(GLOBAL_locks_bm_finished_workers);
|
||||
|
Reference in New Issue
Block a user