Ignore:
Timestamp:
May 8, 2005, 2:11:22 PM (20 years ago)
Author:
bird
Message:

Ported the BSD SysV Semaphore module.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/include/InnoTekLIBC/thread.h

    • Property cvs2svn:cvs-rev changed from 1.12 to 1.13
    r1983 r1984  
    7373    volatile int    fDone;
    7474} __LIBC_THREAD_SIGSUSPEND, *__LIBC_PTHREAD_SIGSUSPEND;
     75
     76
     77/**
     78 * Signal notification callback function.
     79 *
     80 * This is a notification which can be used to correct the state of
     81 * a system object before any user code is executed.
     82 *
     83 * The semaphore lock is hold and signals are all on hold, so be very careful with waitin
     84 * on other semphores and stuff like that. Crashing is totally forbidden. :-)
     85 *
     86 * @param   iSignalNo       The signal number.
     87 * @param   pvUser          The user argument.
     88 */
     89typedef void __LIBC_FNSIGCALLBACK(int iSignalNo, void *pvUser);
     90/** Pointer to a signal callback function. */
     91typedef __LIBC_FNSIGCALLBACK *__LIBC_PFNSIGCALLBACK;
    7592
    7693
     
    174191     * when ever a thread enters for processing a signal asynchronously. */
    175192    volatile unsigned long      ulSigLastTS;
    176 
     193    /** Callback on signal/exception. */
     194    __LIBC_PFNSIGCALLBACK       pfnSigCallback;
     195    /** User argument to signal/exception callback. */
     196    void                       *pvSigCallbackUser;
    177197
    178198    /** Thread status, chiefly used for the u member of the thread structure. */
Note: See TracChangeset for help on using the changeset viewer.