Changeset 86 for trunk/include/helpers/threads.h
- Timestamp:
- Jul 15, 2001, 10:57:25 AM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/helpers/threads.h
r70 r86 13 13 14 14 /* 15 * Copyright (C) 1997-200 0Ulrich Mller.15 * Copyright (C) 1997-2001 Ulrich Mller. 16 16 * This file is part of the "XWorkplace helpers" source package. 17 17 * This is free software; you can redistribute it and/or modify … … 40 40 *@@ THREADINFO: 41 41 * thread info structure passed to secondary threads. 42 * See thrCreate. 42 43 */ 43 44 44 45 typedef struct _THREADINFO 45 46 { 46 47 48 49 50 51 52 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 53 54 54 55 55 TID tid; 56 ULONG hevRunning; // this is a HEV really 56 57 57 58 59 60 58 // data maintained by thr_fntGeneric 59 HAB hab; // for PM threads 60 HMQ hmq; // for PM threads 61 BOOL fExitComplete; 61 62 62 63 64 65 66 63 // data to be maintained by application 64 BOOL fExit; 65 ULONG ulResult; 66 ULONG ulFuncInfo; 67 HWND hwndNotify; 67 68 } THREADINFO, *PTHREADINFO; 68 69 … … 70 71 typedef THREADFUNC *PTHREADFUNC; 71 72 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; 78 82 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); 83 87 84 PTHREADINFO thrListThreads(PULONG pcThreads);88 PTHREADINFO XWPENTRY thrListThreads(PULONG pcThreads); 85 89 86 BOOL thrFindThread(PTHREADINFO pti,87 ULONG tid);90 BOOL XWPENTRY thrFindThread(PTHREADINFO pti, 91 ULONG tid); 88 92 89 BOOL thrClose(PTHREADINFO pti);93 BOOL XWPENTRY thrClose(PTHREADINFO pti); 90 94 91 BOOL thrWait(PTHREADINFO pti);95 BOOL XWPENTRY thrWait(PTHREADINFO pti); 92 96 93 BOOL thrFree(PTHREADINFO pti);97 BOOL XWPENTRY thrFree(PTHREADINFO pti); 94 98 95 BOOL thrKill(PTHREADINFO pti);99 BOOL XWPENTRY thrKill(PTHREADINFO pti); 96 100 97 TID thrQueryID(const THREADINFO* pti);101 TID XWPENTRY thrQueryID(const THREADINFO* pti); 98 102 99 ULONG thrQueryPriority(VOID);103 ULONG XWPENTRY thrQueryPriority(VOID); 100 104 101 105 #endif
Note:
See TracChangeset
for help on using the changeset viewer.