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/thread.cpp

    r919 r956  
    1 /* $Id: thread.cpp,v 1.13 1999-09-13 13:16:21 phaller Exp $ */
     1/* $Id: thread.cpp,v 1.14 1999-09-15 23:38:02 sandervl Exp $ */
    22
    33/*
     
    1212#include <os2win.h>
    1313#include <stdarg.h>
     14#include <string.h>
    1415#include "thread.h"
    1516#include "exceptutil.h"
    1617#include <misc.h>
    1718#include <wprocess.h>
    18 #include <windll.h>
    19 #include <winexe.h>
     19#include <windllbase.h>
     20#include <winexebase.h>
    2021#include <except.h>
    2122
     
    9798             hThread));
    9899
    99   /* @@@PH: map os/2 priority model to win32 priority model */
    100 
    101100    return O32_GetThreadPriority(hThread);
    102101}
     
    118117             priority));
    119118
    120   /* @@@PH: map win32 priority model to os/2 priority model */
    121 
    122119    return O32_SetThreadPriority(hThread, priority);
    123120}
     
    147144           exitcode));
    148145
    149   Win32Dll::detachThreadFromAllDlls();  //send DLL_THREAD_DETACH message to all dlls
    150   Win32Dll::tlsDetachThreadFromAllDlls(); //destroy TLS structures of all dlls
     146  Win32DllBase::detachThreadFromAllDlls();      //send DLL_THREAD_DETACH message to all dlls
     147  Win32DllBase::tlsDetachThreadFromAllDlls(); //destroy TLS structures of all dlls
    151148  WinExe->tlsDetachThread();                    //destroy TLS structure of main exe
    152149  DestroyTIB();
     
    200197  SetWin32TIB();
    201198  WinExe->tlsAttachThread();              //setup TLS structure of main exe
    202   Win32Dll::tlsAttachThreadToAllDlls(); //setup TLS structures of all dlls
    203   Win32Dll::attachThreadToAllDlls();      //send DLL_THREAD_ATTACH message to all dlls
     199  Win32DllBase::tlsAttachThreadToAllDlls(); //setup TLS structures of all dlls
     200  Win32DllBase::attachThreadToAllDlls();          //send DLL_THREAD_ATTACH message to all dlls
    204201
    205202  //Note: The Win32 exception structure references by FS:[0] is the same
     
    209206  OS2UnsetExceptionHandler((void *)&exceptFrame);
    210207
    211   Win32Dll::detachThreadFromAllDlls();  //send DLL_THREAD_DETACH message to all dlls
    212   Win32Dll::tlsDetachThreadFromAllDlls(); //destroy TLS structures of all dlls
     208  Win32DllBase::detachThreadFromAllDlls();  //send DLL_THREAD_DETACH message to all dlls
     209  Win32DllBase::tlsDetachThreadFromAllDlls(); //destroy TLS structures of all dlls
    213210  WinExe->tlsDetachThread();              //destroy TLS structure of main exe
    214211  DestroyTIB();
Note: See TracChangeset for help on using the changeset viewer.