source: trunk/include/auxthread.h@ 21596

Last change on this file since 21596 was 21596, checked in by dmik, 14 years ago

user32: Added internal helper RunOnAuxThread() API to perform function calls on a dedicated helper thread.

  • Property svn:eol-style set to native
File size: 644 bytes
RevLine 
[21596]1/*
2 * Auxiliary thread API
3 *
4 * Used to execute code on a dedicated thread.
5 *
6 * Project Odin Software License can be found in LICENSE.TXT
7 *
8 */
9
10#ifndef __AUXTHREAD_H__
11#define __AUXTHREAD_H__
12
13#ifndef VOID
14#define VOID void
15#endif
16
17typedef PVOID (* PAUXTHREADFN)(PVOID arg1, PVOID arg2, PVOID arg3, PVOID arg4);
18
19BOOL WIN32API RunOnAuxThread(PAUXTHREADFN pfn, PVOID arg1, PVOID arg2,
20 PVOID arg3, PVOID arg4);
21
22BOOL WIN32API RunOnAuxThreadAndWait(PAUXTHREADFN pfn, PVOID arg1, PVOID arg2,
23 PVOID arg3, PVOID arg4, PVOID *ret);
24
25VOID StopAuxThread();
26
27#endif //__AUXTHREAD_H__
Note: See TracBrowser for help on using the repository browser.