Changeset a7d696f for libcfa/src/bits
- Timestamp:
- Aug 3, 2022, 6:32:06 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 20be782
- Parents:
- 80d16f8
- git-author:
- z277zhu <z277zhu@…> (08/03/22 18:24:16)
- git-committer:
- z277zhu <z277zhu@…> (08/03/22 18:32:06)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libcfa/src/bits/defs.hfa
r80d16f8 ra7d696f 21 21 #include <stdint.h> 22 22 #include <assert.h> 23 #include <pthread.h> 23 24 24 25 #define likely(x) __builtin_expect(!!(x), 1) … … 45 46 #endif 46 47 void __cabi_abort( const char fmt[], ... ) __attribute__ (( format(printf, 1, 2), __nothrow__, __leaf__, __noreturn__ )); 48 int real_pthread_create(pthread_t *_thread, const pthread_attr_t *attr, void *(*start_routine) (void *), void *arg); 49 int real_pthread_join(pthread_t _thread, void **retval); 50 pthread_t real_pthread_self(void); 51 int real_pthread_mutex_init(pthread_mutex_t *_mutex, const pthread_mutexattr_t *attr); 52 int real_pthread_mutex_destroy(pthread_mutex_t *_mutex); 53 int real_pthread_mutex_lock(pthread_mutex_t *_mutex); 54 int real_pthread_mutex_unlock(pthread_mutex_t *_mutex); 55 int real_pthread_mutex_trylock(pthread_mutex_t *_mutex); 56 int real_pthread_cond_init(pthread_cond_t *cond, const pthread_condattr_t *attr); 57 int real_pthread_cond_wait(pthread_cond_t *cond, pthread_mutex_t *_mutex); 58 int real_pthread_cond_signal(pthread_cond_t *cond); 59 int real_pthread_cond_broadcast(pthread_cond_t *cond); 60 int real_pthread_cond_destroy(pthread_cond_t *cond); 61 int real_pthread_attr_init(pthread_attr_t *attr); 62 int real_pthread_attr_destroy(pthread_attr_t *attr); 63 int real_pthread_attr_setstack( pthread_attr_t *attr, void *stackaddr, size_t stacksize ); 64 int real_pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize ); 47 65 #ifdef __cforall 48 66 }
Note: See TracChangeset
for help on using the changeset viewer.