sysdep-cancel.h 606 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (C) 2013 Synopsys, Inc. (www.synopsys.com)
  3. *
  4. * Licensed under the LGPL v2.1 or later, see the file COPYING.LIB in this tarball.
  5. */
  6. #include <tls.h>
  7. #include <sysdep.h>
  8. #ifndef __ASSEMBLER__
  9. # include <pthreadP.h>
  10. #endif
  11. #if !defined NOT_IN_libc || defined IS_IN_libpthread || defined IS_IN_librt
  12. # ifdef IS_IN_libpthread
  13. # define __local_multiple_threads __pthread_multiple_threads
  14. # elif !defined NOT_IN_libc
  15. # define __local_multiple_threads __libc_multiple_threads
  16. # endif
  17. # define SINGLE_THREAD_P \
  18. likely(THREAD_GETMEM (THREAD_SELF, header.multiple_threads) == 0)
  19. #endif