| 1 | /* $Id: tls.cpp,v 1.1 1999-06-28 07:55:33 sandervl Exp $ */
|
|---|
| 2 | /*
|
|---|
| 3 | * Win32 TLS API functions
|
|---|
| 4 | *
|
|---|
| 5 | * Copyright 1998 Sander van Leeuwen (sandervl@xs4all.nl)
|
|---|
| 6 | *
|
|---|
| 7 | *
|
|---|
| 8 | * Project Odin Software License can be found in LICENSE.TXT
|
|---|
| 9 | *
|
|---|
| 10 | */
|
|---|
| 11 | #include <os2win.h>
|
|---|
| 12 |
|
|---|
| 13 | //******************************************************************************
|
|---|
| 14 | //******************************************************************************
|
|---|
| 15 | DWORD WIN32API TlsAlloc()
|
|---|
| 16 | {
|
|---|
| 17 | dprintf(("KERNEL32: TlsAlloc\n"));
|
|---|
| 18 | return(O32_TlsAlloc());
|
|---|
| 19 | }
|
|---|
| 20 | //******************************************************************************
|
|---|
| 21 | //******************************************************************************
|
|---|
| 22 | BOOL WIN32API TlsFree(DWORD index)
|
|---|
| 23 | {
|
|---|
| 24 | dprintf(("KERNEL32: TlsFree\n"));
|
|---|
| 25 | return(O32_TlsFree(index));
|
|---|
| 26 | }
|
|---|
| 27 | //******************************************************************************
|
|---|
| 28 | //******************************************************************************
|
|---|
| 29 | LPVOID WIN32API TlsGetValue(DWORD index)
|
|---|
| 30 | {
|
|---|
| 31 | LPVOID rc;
|
|---|
| 32 |
|
|---|
| 33 | rc = O32_TlsGetValue(index);
|
|---|
| 34 | // dprintf(("KERNEL32: TlsGetValue %d returned %X\n", index, rc));
|
|---|
| 35 | return(rc);
|
|---|
| 36 | }
|
|---|
| 37 | //******************************************************************************
|
|---|
| 38 | //******************************************************************************
|
|---|
| 39 | BOOL WIN32API TlsSetValue(DWORD index, LPVOID val)
|
|---|
| 40 | {
|
|---|
| 41 | // dprintf(("KERNEL32: TlsSetValue\n"));
|
|---|
| 42 | return(O32_TlsSetValue(index, val));
|
|---|
| 43 | }
|
|---|
| 44 | //******************************************************************************
|
|---|
| 45 | //******************************************************************************
|
|---|