Ignore:
Timestamp:
Sep 16, 1999, 1:39:08 AM (26 years ago)
Author:
sandervl
Message:

Rewrite for new win32 image classes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/kernel32/wintls.cpp

    r617 r956  
    1 /* $Id: wintls.cpp,v 1.4 1999-08-22 11:11:11 sandervl Exp $ */
     1/* $Id: wintls.cpp,v 1.5 1999-09-15 23:38:02 sandervl Exp $ */
    22/*
    33 * Win32 TLS API functions
     
    1010 */
    1111#include <os2win.h>
    12 #include <winimage.h>
     12#include <string.h>
     13#include <winimagebase.h>
    1314#include <thread.h>
    1415#include <wprocess.h>
     
    1819//******************************************************************************
    1920//******************************************************************************
    20 void Win32Image::tlsAlloc()     //Allocate TLS index for this module
     21void Win32ImageBase::tlsAlloc() //Allocate TLS index for this module
    2122{
    2223   if(!tlsAddress)
     
    2930        return;         
    3031   }
    31    dprintf(("Win32Image::tlsAlloc (%d) for module %x", tlsIndex, hinstance));
     32   dprintf(("Win32ImageBase::tlsAlloc (%d) for module %x", tlsIndex, hinstance));
    3233}
    3334//******************************************************************************
    3435//******************************************************************************
    35 void Win32Image::tlsDelete()    //Free TLS index for this module
     36void Win32ImageBase::tlsDelete()        //Free TLS index for this module
    3637{
    3738   if(!tlsAddress)
     
    4344        return;         
    4445   }
    45    dprintf(("Win32Image::tlsDestroy (%d) for module %x", tlsIndex, hinstance));
     46   dprintf(("Win32ImageBase::tlsDestroy (%d) for module %x", tlsIndex, hinstance));
    4647   TlsFree(tlsIndex);
    4748   tlsIndex = -1;
     
    4950//******************************************************************************
    5051//******************************************************************************
    51 void Win32Image::tlsAttachThread()      //setup TLS structures for new thread
     52void Win32ImageBase::tlsAttachThread()  //setup TLS structures for new thread
    5253{
    5354 EXCEPTION_FRAME exceptFrame;
     
    6667   }
    6768
    68    dprintf(("Win32Image::tlsAttachThread for module %x, thread id %x", hinstance, GetCurrentThreadId()));
     69   dprintf(("Win32ImageBase::tlsAttachThread for module %x, thread id %x", hinstance, GetCurrentThreadId()));
    6970   dprintf(("tlsAddress:      %x", tlsAddress));
    7071   dprintf(("tlsInitSize:     %x", tlsInitSize));
     
    105106//******************************************************************************
    106107//******************************************************************************
    107 void Win32Image::tlsDetachThread()      //destroy TLS structures
     108void Win32ImageBase::tlsDetachThread()  //destroy TLS structures
    108109{
    109110 EXCEPTION_FRAME exceptFrame;
     
    115116        return;
    116117
    117    dprintf(("Win32Image::tlsDetachThread for module %x, thread id %x", hinstance, GetCurrentThreadId()));
     118   dprintf(("Win32ImageBase::tlsDetachThread for module %x, thread id %x", hinstance, GetCurrentThreadId()));
    118119
    119120   if((ULONG)*tlsCallBackAddr != 0) {
Note: See TracChangeset for help on using the changeset viewer.