rtos : current_threadid move to rtos context
[fw/openocd] / src / rtos / rtos.h
index 93a980e239e46d2c25254cb9b54739e7d23effe8..df0812fc6c1d67332a0271ce1a5187ef16b4bb99 100644 (file)
@@ -57,7 +57,8 @@ struct rtos
 
        symbol_table_elem_t * symbols;
        struct target *target;
-
+       /*  add a context variable instead of global variable */
+       int64_t current_threadid;
        threadid_t current_thread;
        struct thread_detail* thread_details;
        int thread_count;