sgx_pthread.h 597 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (C) 2019 Intel Corporation. All rights reserved.
  3. * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. */
  5. #ifndef _SGX_PTHREAD_H
  6. #define _SGX_PTHREAD_H
  7. #ifdef __cplusplus
  8. extern "C" {
  9. #endif
  10. typedef uintptr_t pthread_rwlock_t;
  11. int pthread_rwlock_init(pthread_rwlock_t *rwlock, void *attr);
  12. int pthread_rwlock_destroy(pthread_rwlock_t *rwlock);
  13. int pthread_rwlock_wrlock(pthread_rwlock_t *rwlock);
  14. int pthread_rwlock_rdlock(pthread_rwlock_t *rwlock);
  15. int pthread_rwlock_unlock(pthread_rwlock_t *rwlock);
  16. #ifdef __cplusplus
  17. }
  18. #endif
  19. #endif /* end of _SGX_PTHREAD_H */