Ignore:
Timestamp:
Oct 27, 2022, 10:45:30 AM (18 months ago)
Author:
Thierry Delisle <tdelisle@…>
Branches:
ADT, ast-experimental, master
Children:
878cfcc
Parents:
eb9f7f9
Message:

added pthread once among the list of routines in the cfa_libpthread.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libcfa/src/interpose_thread.cfa

    reb9f7f9 r7f81ef4  
    7474        int (*pthread_sigmask)(int how, const sigset_t *set, sigset_t *oldset);
    7575        int (*pthread_sigqueue)(pthread_t _thread, int sig, const union sigval value);
     76        int (*pthread_once)(pthread_once_t *once_control, void (*init_routine)(void));
    7677} __cabi_libpthread;
    7778
     
    9192                INTERPOSE( pthread_sigmask , version );
    9293                INTERPOSE( pthread_sigqueue , version );
     94                INTERPOSE( pthread_once , version );
    9395#pragma GCC diagnostic pop
    9496        }
     
    105107                return __cabi_libpthread.pthread_self();
    106108        }
     109
    107110        int __cfaabi_pthread_attr_init(pthread_attr_t *attr){
    108111                return __cabi_libpthread.pthread_attr_init(attr);
    109112        }
     113
    110114        int __cfaabi_pthread_attr_destroy(pthread_attr_t *attr){
    111115                return __cabi_libpthread.pthread_attr_destroy(attr);
    112116        }
     117
    113118        int __cfaabi_pthread_attr_setstack( pthread_attr_t *attr, void *stackaddr, size_t stacksize ){
    114119                return __cabi_libpthread.pthread_attr_setstack(attr, stackaddr, stacksize);
    115120        }
     121
    116122        int read_pthread_attr_getstacksize( const pthread_attr_t *attr, size_t *stacksize ){
    117123                return __cabi_libpthread.pthread_attr_getstacksize(attr, stacksize);
    118124        }
     125
    119126        int __cfaabi_pthread_sigmask(int how, const sigset_t *set, sigset_t *oldset){
    120127                return __cabi_libpthread.pthread_sigmask(how, set, oldset);
    121128        }
    122         int __cfaabi_pthread_sigqueue(pthread_t _thread, int sig, const union sigval value){
     129
     130        int __cfaabi_pthread_sigqueue(pthread_t _thread, int sig, const union sigval value) {
    123131                return __cabi_libpthread.pthread_sigqueue(_thread, sig, value);
    124132        }
     133
     134        int __cfaabi_pthread_once(pthread_once_t *once_control, void (*init_routine)(void)) {
     135                return __cabi_libpthread.pthread_once(once_control, init_routine);
     136        }
    125137}
Note: See TracChangeset for help on using the changeset viewer.