Ignore:
Timestamp:
Jul 15, 2001, 10:57:25 AM (24 years ago)
Author:
umoeller
Message:

Misc changes.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/helpers/threads.h

    r70 r86  
    1313
    1414/*
    15  *      Copyright (C) 1997-2000 Ulrich M”ller.
     15 *      Copyright (C) 1997-2001 Ulrich M”ller.
    1616 *      This file is part of the "XWorkplace helpers" source package.
    1717 *      This is free software; you can redistribute it and/or modify
     
    4040     *@@ THREADINFO:
    4141     *      thread info structure passed to secondary threads.
     42     *      See thrCreate.
    4243     */
    4344
    4445    typedef struct _THREADINFO
    4546    {
    46             // data maintained by thr* functions
    47             ULONG   cbStruct;
    48             void*   pThreadFunc;    // as passed to thrCreate, really a PTHREADFUNC
    49             PULONG  ptidRunning;      // as passed to thrCreate V0.9.12 (2001-05-20) [umoeller]
    50             const char *pcszThreadName; // as passed to thrCreate
    51             ULONG   flFlags;        // as passed to thrCreate
    52             ULONG   ulData;         // as passed to thrCreate
     47        // data maintained by thr* functions
     48        ULONG   cbStruct;
     49        void*   pThreadFunc;    // as passed to thrCreate, really a PTHREADFUNC
     50        PULONG  ptidRunning;      // as passed to thrCreate V0.9.12 (2001-05-20) [umoeller]
     51        const char *pcszThreadName; // as passed to thrCreate
     52        ULONG   flFlags;        // as passed to thrCreate
     53        ULONG   ulData;         // as passed to thrCreate
    5354
    54             TID     tid;
    55             ULONG   hevRunning;     // this is a HEV really
     55        TID     tid;
     56        ULONG   hevRunning;     // this is a HEV really
    5657
    57             // data maintained by thr_fntGeneric
    58             HAB     hab;            // for PM threads
    59             HMQ     hmq;            // for PM threads
    60             BOOL    fExitComplete;
     58        // data maintained by thr_fntGeneric
     59        HAB     hab;            // for PM threads
     60        HMQ     hmq;            // for PM threads
     61        BOOL    fExitComplete;
    6162
    62             // data to be maintained by application
    63             BOOL    fExit;
    64             ULONG   ulResult;
    65             ULONG   ulFuncInfo;
    66             HWND    hwndNotify;
     63        // data to be maintained by application
     64        BOOL    fExit;
     65        ULONG   ulResult;
     66        ULONG   ulFuncInfo;
     67        HWND    hwndNotify;
    6768    } THREADINFO, *PTHREADINFO;
    6869
     
    7071    typedef THREADFUNC *PTHREADFUNC;
    7172
    72     ULONG thrCreate(PTHREADINFO pti,
    73                     PTHREADFUNC pfn,
    74                     PBOOL pfRunning,
    75                     const char *pcszThreadName,
    76                     ULONG flFlags,
    77                     ULONG ulData);
     73    ULONG XWPENTRY thrCreate(PTHREADINFO pti,
     74                             PTHREADFUNC pfn,
     75                             PULONG pfRunning,
     76                             const char *pcszThreadName,
     77                             ULONG flFlags,
     78                             ULONG ulData);
     79    // this function is exported, so add definition here V0.9.13 (2001-06-13) [lafaix]
     80    typedef BOOL XWPENTRY THRCREATE(PTHREADINFO, PTHREADFUNC, PULONG, const char *, ULONG, ULONG);
     81    typedef THRCREATE *PTHRCREATE;
    7882
    79     ULONG thrRunSync(HAB hab,
    80                      PTHREADFUNC pfn,
    81                      const char *pcszThreadName,
    82                      ULONG ulData);
     83    ULONG XWPENTRY thrRunSync(HAB hab,
     84                              PTHREADFUNC pfn,
     85                              const char *pcszThreadName,
     86                              ULONG ulData);
    8387
    84     PTHREADINFO thrListThreads(PULONG pcThreads);
     88    PTHREADINFO XWPENTRY thrListThreads(PULONG pcThreads);
    8589
    86     BOOL thrFindThread(PTHREADINFO pti,
    87                        ULONG tid);
     90    BOOL XWPENTRY thrFindThread(PTHREADINFO pti,
     91                                ULONG tid);
    8892
    89     BOOL thrClose(PTHREADINFO pti);
     93    BOOL XWPENTRY thrClose(PTHREADINFO pti);
    9094
    91     BOOL thrWait(PTHREADINFO pti);
     95    BOOL XWPENTRY thrWait(PTHREADINFO pti);
    9296
    93     BOOL thrFree(PTHREADINFO pti);
     97    BOOL XWPENTRY thrFree(PTHREADINFO pti);
    9498
    95     BOOL thrKill(PTHREADINFO pti);
     99    BOOL XWPENTRY thrKill(PTHREADINFO pti);
    96100
    97     TID thrQueryID(const THREADINFO* pti);
     101    TID XWPENTRY thrQueryID(const THREADINFO* pti);
    98102
    99     ULONG thrQueryPriority(VOID);
     103    ULONG XWPENTRY thrQueryPriority(VOID);
    100104
    101105#endif
Note: See TracChangeset for help on using the changeset viewer.