SHARE
TWEET

Untitled

a guest Sep 5th, 2017 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #ifdef ALLOW_REMOVE_THREAD
  2. /*---------------------------------------------------------------------------
  3.  * Remove a thread from the scheduler. Not The Right Way to Do Things in
  4.  * normal programs.
  5.  *
  6.  * Parameter is the ID as returned from create_thread().
  7.  *
  8.  * Use with care on threads that are not under careful control as this may
  9.  * leave various objects in an undefined state.
  10.  *---------------------------------------------------------------------------
  11.  */
  12. void remove_thread(unsigned int thread_id)
  13. {
  14. #ifdef HAVE_CORELOCK_OBJECT
  15.     /* core is not constant here because of core switching */
  16.     unsigned int core = CURRENT_CORE;
  17.     unsigned int old_core = NUM_CORES;
  18.     struct corelock *ocl = NULL;
  19. #else
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top