ReactOS 0.4.16-dev-747-gbc52d5f
|
Go to the source code of this file.
Macros | |
#define | WSH_SEARCH_TABLE_FROM_HANDLE(h, t) (&t->SearchTables[(((ULONG_PTR)h >> 2) & t->Mask)]) |
#define | WSH_HASH_FROM_HANDLE(h, hs) (hs->Handles[((ULONG_PTR)h % hs->Size)]) |
#define | AcquireWriteLock(t) EnterCriticalSection(&t->Lock); |
#define | ReleaseWriteLock(t) LeaveCriticalSection(&t->Lock); |
Typedefs | |
typedef volatile LONG | VLONG |
typedef VLONG * | PVLONG |
Variables | |
CRITICAL_SECTION | WshHandleTableLock |
HANDLE | ghWriterEvent |
DWORD | gdwSpinCount = 0 |
DWORD | gHandleToIndexMask |
CONST DWORD | SockPrimes [] |
#define AcquireWriteLock | ( | t | ) | EnterCriticalSection(&t->Lock); |
#define ReleaseWriteLock | ( | t | ) | LeaveCriticalSection(&t->Lock); |
Definition at line 50 of file context.c.
Referenced by WahInsertHandleContext(), and WahReferenceContextByHandle().
Definition at line 88 of file context.c.
Referenced by TryWaitForReaders().
Definition at line 75 of file context.c.
Referenced by WahInsertHandleContext(), and WahReferenceContextByHandle().
|
static |
Definition at line 144 of file context.c.
Referenced by WahEnumerateHandleContexts(), WahInsertHandleContext(), and WahRemoveHandleContext().
DWORD WINAPI WahCreateHandleContextTable | ( | OUT PWAH_HANDLE_TABLE * | Table | ) |
Definition at line 189 of file context.c.
Referenced by WsSockStartup().
DWORD WINAPI WahDestroyHandleContextTable | ( | IN PWAH_HANDLE_TABLE | Table | ) |
Definition at line 246 of file context.c.
Referenced by WsSockCleanup().
BOOL WINAPI WahEnumerateHandleContexts | ( | IN PWAH_HANDLE_TABLE | Table, |
IN PWAH_HANDLE_ENUMERATE_PROC | Callback, | ||
IN PVOID | Context | ||
) |
Definition at line 280 of file context.c.
Referenced by WsProcDelete().
PWAH_HANDLE WINAPI WahInsertHandleContext | ( | IN PWAH_HANDLE_TABLE | Table, |
IN PWAH_HANDLE | Handle | ||
) |
Definition at line 336 of file context.c.
Referenced by WsSockAssociateHandle().
PWAH_HANDLE WINAPI WahReferenceContextByHandle | ( | IN PWAH_HANDLE_TABLE | Table, |
IN HANDLE | Handle | ||
) |
Definition at line 524 of file context.c.
Referenced by WsSockGetSocket(), and WsSockGetSocketNoExport().
DWORD WINAPI WahRemoveHandleContext | ( | IN PWAH_HANDLE_TABLE | Table, |
IN PWAH_HANDLE | Handle | ||
) |
Definition at line 564 of file context.c.
Referenced by WsProcDetachSocket(), and WsSockDisassociateHandle().
DWORD gdwSpinCount = 0 |
Definition at line 18 of file context.c.
Referenced by NewCtxInit(), and WahCreateHandleContextTable().
DWORD gHandleToIndexMask |
Definition at line 19 of file context.c.
Referenced by NewCtxInit(), and WahCreateHandleContextTable().
HANDLE ghWriterEvent |
Definition at line 17 of file context.c.
Referenced by DllMain(), DoWaitForReaders(), and ReleaseReadLock().
Definition at line 21 of file context.c.
Referenced by WahInsertHandleContext().
CRITICAL_SECTION WshHandleTableLock |