Ignore:
Timestamp:
Oct 10, 2004, 1:25:59 PM (21 years ago)
Author:
bird
Message:

put back some old stuff.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.6 to 1.7
    r1577 r1578  
    189189        struct __libc_sys
    190190        {
     191#ifndef __NEW_SIGNALS__
     192            /** Blocked signal mask. */
     193            sigset_t            sig_blocked;
     194            /** Pending signal mask. */
     195            sigset_t            sig_pending;
     196            /** Signal actions. */
     197            struct sigaction    signals[NSIG];
     198#endif /* !__NEW_SIGNALS__ */
    191199            /** Directory find data entry.
    192200             * Used by __findfirst() and __findnext(). */
     
    225233    /** This member must be initialized to NULL. */
    226234    struct __libc_ThreadTermCbRegRec   *pNext;
    227     /** Flags field reserved for future use. 
     235    /** Flags field reserved for future use.
    228236     * Must be initalized to ZERO.  */
    229237    unsigned                            fFlags;
    230     /** 
    231      * The callback function. 
     238    /**
     239     * The callback function.
    232240     *
    233241     * @param pRegRec   Registration record which the callback was registered with.
    234      * @param fFlags    Reserved for future use. Will always be zero when fFlags 
     242     * @param fFlags    Reserved for future use. Will always be zero when fFlags
    235243     *                  in the RegRec is zero.
    236244     */
     
    325333/**
    326334 * Get the thread structure for a thread selected by a custom callback function.
    327  * 
     335 *
    328336 * @returns Pointer to the selected thread.
    329337 *          The caller _must_ call __libc_threadRelease() when it's done using the
     
    339347 *                      pBest       The current best thread.
    340348 *                      pvParam     User parameter.
    341  *                     
     349 *
    342350 * @param   pvParam     User Parameter.
    343351 */
     
    345353
    346354
    347 /** 
    348  * Enumerates all the threads LIBC is aware of subjecting each of them to a 
     355/**
     356 * Enumerates all the threads LIBC is aware of subjecting each of them to a
    349357 * caller specified callback function.
    350358 *
     
    359367 *                      pCur        The current thread.
    360368 *                      pvParam     User parameter.
    361  *                     
     369 *
    362370 * @param   pvParam     User Parameter.
    363371 */
     
    407415
    408416
    409 /** 
     417/**
    410418 * Register a thread destruction callback.
    411419 *
    412  * This will be called when one thread is terminating normally, i.e. calling 
     420 * This will be called when one thread is terminating normally, i.e. calling
    413421 * _endthread() or returning from it's thread function.
    414  * When LIBC implements pthreads basics any new non-abnormal thread exit will 
     422 * When LIBC implements pthreads basics any new non-abnormal thread exit will
    415423 * cause a callback too.
    416424 *
     
    421429 *                      to unregister a callback at present.
    422430 *
    423  * @remark  We might wanna extend the API at a later point for calling back 
    424  *          at abnormal termination and such. Such extensions will be done 
     431 * @remark  We might wanna extend the API at a later point for calling back
     432 *          at abnormal termination and such. Such extensions will be done
    425433 *          using the fFlags member of __LIBC_THREADTERMCBREGREC and the fFlags
    426434 *          parameter to the callback.
     
    432440 *
    433441 * Not called for thread 1.
    434  * 
     442 *
    435443 * @param   fFlags  Reserved for termination reasons.
    436444 *                  Zero means normal exit, no other codes have been defined.
     
    479487int     __libc_TLSSet(int iIndex, void *pvValue);
    480488
    481 /** 
     489/**
    482490 * Register a thread termination destructor for an TLS entry.
    483491 *
    484492 * The destructor function will be called when a thread terminates
    485493 * in a normal fashion and the TLS entry iTLSIndex of that thread is
    486  * not NULL. 
     494 * not NULL.
    487495 *
    488496 * There will be no callbacks in thread 1.
     
    511519/**
    512520 * Get pointer to the destructor function registered for the given TLS entry.
    513  * 
     521 *
    514522 * @returns NULL if invalid entry, errno set.
    515523 * @returns NULL if no entry registered.
Note: See TracChangeset for help on using the changeset viewer.