Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #ifdef ALLOW_REMOVE_THREAD
- /*---------------------------------------------------------------------------
- * Remove a thread from the scheduler. Not The Right Way to Do Things in
- * normal programs.
- *
- * Parameter is the ID as returned from create_thread().
- *
- * Use with care on threads that are not under careful control as this may
- * leave various objects in an undefined state.
- *---------------------------------------------------------------------------
- */
- void remove_thread(unsigned int thread_id)
- {
- #ifdef HAVE_CORELOCK_OBJECT
- /* core is not constant here because of core switching */
- unsigned int core = CURRENT_CORE;
- unsigned int old_core = NUM_CORES;
- struct corelock *ocl = NULL;
- #else
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement