Advertisement
Guest User

Untitled

a guest
Sep 5th, 2017
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement