restart.h 1.2 KB

123456789101112131415161718192021222324252627
  1. /* Linuxthreads - a simple clone()-based implementation of Posix */
  2. /* threads for Linux. */
  3. /* Copyright (C) 1996 Xavier Leroy (Xavier.Leroy@inria.fr) */
  4. /* */
  5. /* This program is free software; you can redistribute it and/or */
  6. /* modify it under the terms of the GNU Library General Public License */
  7. /* as published by the Free Software Foundation; either version 2 */
  8. /* of the License, or (at your option) any later version. */
  9. /* */
  10. /* This program is distributed in the hope that it will be useful, */
  11. /* but WITHOUT ANY WARRANTY; without even the implied warranty of */
  12. /* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the */
  13. /* GNU Library General Public License for more details. */
  14. #include <signal.h>
  15. /* Primitives for controlling thread execution */
  16. static inline void restart(pthread_descr th)
  17. {
  18. __pthread_restart(th); /* see pthread.c */
  19. }
  20. static inline void suspend(pthread_descr self)
  21. {
  22. __pthread_suspend(self); /* see pthread.c */
  23. }