Counter Strike : Global Offensive Source Code
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

47 lines
1.3 KiB

  1. #ifndef Py_PYTHREAD_H
  2. #define Py_PYTHREAD_H
  3. #define NO_EXIT_PROG /* don't define PyThread_exit_prog() */
  4. /* (the result is no use of signals on SGI) */
  5. typedef void *PyThread_type_lock;
  6. typedef void *PyThread_type_sema;
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. PyAPI_FUNC(void) PyThread_init_thread(void);
  11. PyAPI_FUNC(long) PyThread_start_new_thread(void (*)(void *), void *);
  12. PyAPI_FUNC(void) PyThread_exit_thread(void);
  13. PyAPI_FUNC(void) PyThread__PyThread_exit_thread(void);
  14. PyAPI_FUNC(long) PyThread_get_thread_ident(void);
  15. PyAPI_FUNC(PyThread_type_lock) PyThread_allocate_lock(void);
  16. PyAPI_FUNC(void) PyThread_free_lock(PyThread_type_lock);
  17. PyAPI_FUNC(int) PyThread_acquire_lock(PyThread_type_lock, int);
  18. #define WAIT_LOCK 1
  19. #define NOWAIT_LOCK 0
  20. PyAPI_FUNC(void) PyThread_release_lock(PyThread_type_lock);
  21. PyAPI_FUNC(size_t) PyThread_get_stacksize(void);
  22. PyAPI_FUNC(int) PyThread_set_stacksize(size_t);
  23. #ifndef NO_EXIT_PROG
  24. PyAPI_FUNC(void) PyThread_exit_prog(int);
  25. PyAPI_FUNC(void) PyThread__PyThread_exit_prog(int);
  26. #endif
  27. /* Thread Local Storage (TLS) API */
  28. PyAPI_FUNC(int) PyThread_create_key(void);
  29. PyAPI_FUNC(void) PyThread_delete_key(int);
  30. PyAPI_FUNC(int) PyThread_set_key_value(int, void *);
  31. PyAPI_FUNC(void *) PyThread_get_key_value(int);
  32. PyAPI_FUNC(void) PyThread_delete_key_value(int key);
  33. #ifdef __cplusplus
  34. }
  35. #endif
  36. #endif /* !Py_PYTHREAD_H */