You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

std_thread.h 678 B

3 years ago
123456789101112131415161718192021222324252627
  1. #ifndef _STD_THREAD_H
  2. #define _STD_THREAD_H
  3. typedef struct _stdThread *stdThread;
  4. typedef struct _stdThreadLock *stdThreadLock;
  5. #ifdef __cplusplus
  6. extern "C" {
  7. #endif
  8. typedef void (*stdThreadRoutine)(void *args);
  9. /* All of these return positive ('true') on success, zero ('false') on failure */
  10. int stdThreadCreate(stdThreadRoutine start, void *args, stdThread *thread);
  11. int stdThreadJoin(stdThread thread);
  12. int stdThreadDestroy(stdThread thread);
  13. int stdThreadLockCreate(stdThreadLock *lock);
  14. void stdThreadLockAcquire(stdThreadLock lock);
  15. void stdThreadLockRelease(stdThreadLock lock);
  16. void stdThreadLockDestroy(stdThreadLock lock);
  17. #ifdef __cplusplus
  18. };
  19. #endif
  20. #endif

No Description

Contributors (1)