Ignore:
Timestamp:
Dec 3, 2001, 1:13:10 PM (24 years ago)
Author:
sandervl
Message:

priority updates/changes

File:
1 edited

Legend:

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

    r7519 r7532  
    1 /* $Id: thread.cpp,v 1.37 2001-12-01 20:41:37 sandervl Exp $ */
     1/* $Id: thread.cpp,v 1.38 2001-12-03 12:13:10 sandervl Exp $ */
    22
    33/*
     
    3939ODINDEBUGCHANNEL(KERNEL32-THREAD)
    4040
    41 
    42 // The function GetThreadTEB() is defined in wprocess.cpp
    43 // This macro is for performance improvement only.
    44 // DWORD TIBFlatPtr is exported from wprocess.cpp
    45 #define GetThreadTEB() (TIBFlatPtr) ? ((TEB *)*TIBFlatPtr) : 0
    46 
     41static ULONG priorityclass = NORMAL_PRIORITY_CLASS;
    4742
    4843//******************************************************************************
     
    7469    return teb->o.odin.hThread;
    7570}
    76 
     71//******************************************************************************
    7772// these two debugging functions allow access to a
    7873// calldepth counter inside the TEB block of each thread
     74//******************************************************************************
    7975ULONG WIN32API dbg_GetThreadCallDepth()
    8076{
     
    9187#endif
    9288}
    93 
    94 
     89//******************************************************************************
     90//******************************************************************************
    9591void WIN32API dbg_IncThreadCallDepth()
    9692{
     
    10399#endif
    104100}
    105 
    106 
     101//******************************************************************************
    107102#define MAX_CALLSTACK_SIZE 128
     103//******************************************************************************
    108104void WIN32API dbg_ThreadPushCall(char *pszCaller)
    109105{
     
    130126#endif
    131127}
    132 
    133 
     128//******************************************************************************
     129//******************************************************************************
    134130void WIN32API dbg_DecThreadCallDepth()
    135131{
     
    142138#endif
    143139}
    144 
    145 
     140//******************************************************************************
     141//******************************************************************************
    146142void WIN32API dbg_ThreadPopCall()
    147143{
     
    165161#endif
    166162}
    167 
     163//******************************************************************************
     164//******************************************************************************
    168165char* WIN32API dbg_GetLastCallerName()
    169166{
     
    187184  return NULL;
    188185}
    189 
    190 
    191186//******************************************************************************
    192187//******************************************************************************
     
    247242//******************************************************************************
    248243//******************************************************************************
     244VOID WIN32API Sleep(DWORD mSecs)
     245{
     246    dprintf2(("KERNEL32: Sleep %d", mSecs));
     247    OSLibDosSleep(mSecs);
     248}
     249//******************************************************************************
     250//******************************************************************************
     251DWORD WIN32API GetPriorityClass(HANDLE hProcess)
     252{
     253    dprintf(("KERNEL32: GetPriorityClass %x", hProcess));
     254    return priorityclass;
     255//    return O32_GetPriorityClass(hProcess);
     256}
     257//******************************************************************************
     258//******************************************************************************
     259BOOL WIN32API SetPriorityClass(HANDLE hProcess, DWORD dwPriority)
     260{
     261    dprintf(("KERNEL32: SetPriorityClass %x %x", hProcess, dwPriority));
     262    priorityclass = dwPriority;
     263    return TRUE;
     264//    return O32_SetPriorityClass(hProcess, dwPriority);
     265}
     266//******************************************************************************
     267//******************************************************************************
    249268Win32Thread::Win32Thread(LPTHREAD_START_ROUTINE pUserCallback, LPVOID lpData, DWORD dwFlags, HANDLE hThread)
    250269{
Note: See TracChangeset for help on using the changeset viewer.