#include <stdarg.h>
#include "windef.h"
#include "winbase.h"
#include "wingdi.h"
#include "winuser.h"
#include "objbase.h"
#include "wine/debug.h"
#include "dpnet_private.h"
Go to the source code of this file.
|
| | WINE_DEFAULT_DEBUG_CHANNEL (dpnet) |
| |
| static IDirectPlay8ThreadPoolImpl * | impl_from_IDirectPlay8ThreadPool (IDirectPlay8ThreadPool *iface) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_QueryInterface (IDirectPlay8ThreadPool *iface, REFIID riid, void **ret_iface) |
| |
| static ULONG WINAPI | IDirectPlay8ThreadPoolImpl_AddRef (IDirectPlay8ThreadPool *iface) |
| |
| static ULONG WINAPI | IDirectPlay8ThreadPoolImpl_Release (IDirectPlay8ThreadPool *iface) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_Initialize (IDirectPlay8ThreadPool *iface, void *const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_Close (IDirectPlay8ThreadPool *iface, const DWORD dwFlags) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_GetThreadCount (IDirectPlay8ThreadPool *iface, const DWORD dwProcessorNum, DWORD *const pdwNumThreads, const DWORD dwFlags) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_SetThreadCount (IDirectPlay8ThreadPool *iface, const DWORD dwProcessorNum, const DWORD dwNumThreads, const DWORD dwFlags) |
| |
| static HRESULT WINAPI | IDirectPlay8ThreadPoolImpl_DoWork (IDirectPlay8ThreadPool *iface, const DWORD dwAllowedTimeSlice, const DWORD dwFlags) |
| |
| HRESULT | DPNET_CreateDirectPlay8ThreadPool (LPCLASSFACTORY iface, LPUNKNOWN punkOuter, REFIID riid, LPVOID *ppobj) |
| |
◆ COBJMACROS
◆ DPNET_CreateDirectPlay8ThreadPool()
Definition at line 157 of file threadpool.c.
158{
160
162
164 {
166 WARN(
"Not enough memory\n");
168 }
169
172
174 ppobj);
175}
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_QueryInterface(IDirectPlay8ThreadPool *iface, REFIID riid, void **ret_iface)
static const IDirectPlay8ThreadPoolVtbl DirectPlay8ThreadPool_Vtbl
◆ IDirectPlay8ThreadPoolImpl_AddRef()
| static ULONG WINAPI IDirectPlay8ThreadPoolImpl_AddRef |
( |
IDirectPlay8ThreadPool * |
iface | ) |
|
|
static |
Definition at line 62 of file threadpool.c.
63{
66
67 return RefCount;
68}
#define InterlockedIncrement
static IDirectPlay8ThreadPoolImpl * impl_from_IDirectPlay8ThreadPool(IDirectPlay8ThreadPool *iface)
◆ IDirectPlay8ThreadPoolImpl_Close()
Definition at line 102 of file threadpool.c.
104{
106
108
111
113
115}
static PFNDPNMESSAGEHANDLER threadpool_msghandler
#define DPNERR_UNINITIALIZED
_In_ LPWSTR _In_ DWORD _In_ DWORD _In_ DWORD dwFlags
◆ IDirectPlay8ThreadPoolImpl_DoWork()
Definition at line 132 of file threadpool.c.
134{
136
138 FIXME(
"(%p)->(%lx,%lx): stub\n", iface, dwAllowedTimeSlice,
dwFlags);
139
141
143}
◆ IDirectPlay8ThreadPoolImpl_GetThreadCount()
Definition at line 117 of file threadpool.c.
119{
120 FIXME(
"(%p)->(%lx,%p,%lx): stub\n", iface, dwProcessorNum, pdwNumThreads,
dwFlags);
121 *pdwNumThreads = 0;
123}
◆ IDirectPlay8ThreadPoolImpl_Initialize()
Definition at line 82 of file threadpool.c.
84{
86
88
89 if(!pfn)
91
94
98
100}
static DWORD threadpool_flags
static void * threadpool_usercontext
#define DPNERR_ALREADYINITIALIZED
#define DPNERR_INVALIDPARAM
◆ IDirectPlay8ThreadPoolImpl_QueryInterface()
| static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_QueryInterface |
( |
IDirectPlay8ThreadPool * |
iface, |
|
|
REFIID |
riid, |
|
|
void ** |
ret_iface |
|
) |
| |
|
static |
◆ IDirectPlay8ThreadPoolImpl_Release()
| static ULONG WINAPI IDirectPlay8ThreadPoolImpl_Release |
( |
IDirectPlay8ThreadPool * |
iface | ) |
|
|
static |
Definition at line 70 of file threadpool.c.
71{
74
75 if(!RefCount)
77
78 return RefCount;
79}
#define InterlockedDecrement
#define HeapFree(x, y, z)
◆ IDirectPlay8ThreadPoolImpl_SetThreadCount()
Definition at line 125 of file threadpool.c.
127{
128 FIXME(
"(%p)->(%lx,%lx,%lx): stub\n", iface, dwProcessorNum, dwNumThreads,
dwFlags);
130}
◆ impl_from_IDirectPlay8ThreadPool()
◆ WINE_DEFAULT_DEBUG_CHANNEL()
| WINE_DEFAULT_DEBUG_CHANNEL |
( |
dpnet |
| ) |
|
◆ DirectPlay8ThreadPool_Vtbl
| const IDirectPlay8ThreadPoolVtbl DirectPlay8ThreadPool_Vtbl |
|
static |
Initial value:=
{
}
static ULONG WINAPI IDirectPlay8ThreadPoolImpl_Release(IDirectPlay8ThreadPool *iface)
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_GetThreadCount(IDirectPlay8ThreadPool *iface, const DWORD dwProcessorNum, DWORD *const pdwNumThreads, const DWORD dwFlags)
static ULONG WINAPI IDirectPlay8ThreadPoolImpl_AddRef(IDirectPlay8ThreadPool *iface)
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_Initialize(IDirectPlay8ThreadPool *iface, void *const pvUserContext, const PFNDPNMESSAGEHANDLER pfn, const DWORD dwFlags)
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_Close(IDirectPlay8ThreadPool *iface, const DWORD dwFlags)
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_DoWork(IDirectPlay8ThreadPool *iface, const DWORD dwAllowedTimeSlice, const DWORD dwFlags)
static HRESULT WINAPI IDirectPlay8ThreadPoolImpl_SetThreadCount(IDirectPlay8ThreadPool *iface, const DWORD dwProcessorNum, const DWORD dwNumThreads, const DWORD dwFlags)
Definition at line 145 of file threadpool.c.
Referenced by DPNET_CreateDirectPlay8ThreadPool().
◆ threadpool_flags
| DWORD threadpool_flags = 0 |
|
static |
◆ threadpool_msghandler
◆ threadpool_usercontext