Ignore:
Timestamp:
May 31, 1999, 9:22:44 PM (26 years ago)
Author:
phaller
Message:

Added debug information and a little code formatting

File:
1 edited

Legend:

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

    r4 r15  
    1 /* $Id: thread.cpp,v 1.1 1999-05-24 20:19:48 ktk Exp $ */
     1/* $Id: thread.cpp,v 1.2 1999-05-31 19:22:44 phaller Exp $ */
    22
    33/*
     
    3232    return(0);
    3333
    34   dprintf(("CreateThread\n"));
     34  dprintf(("CreateThread (%08xh,%08xh,%08xh,%08xh,%08xh,%08xh)\n",
     35           lpsa,
     36           cbStack,
     37           lpStartAddr,
     38           lpvThreadParm,
     39           fdwCreate,
     40           lpIDThread));
     41
    3542  return(O32_CreateThread(lpsa, cbStack, winthread->GetOS2Callback(), (LPVOID)winthread, fdwCreate, lpIDThread));
    3643}
     
    4047{
    4148  dprintf(("GetCurrentThreadId\n"));
     49
    4250  return(O32_GetCurrentThreadId());
    4351}
     
    5361BOOL WIN32API GetExitCodeThread(HANDLE hThread, LPDWORD arg2)
    5462{
    55     dprintf(("GetExitCodeThread\n"));
     63    dprintf(("GetExitCodeThread (%08xh,%08xh)\n",
     64             hThread,
     65             arg2));
     66
    5667    return O32_GetExitCodeThread(hThread, arg2);
    5768}
     
    6071BOOL WIN32API TerminateThread(HANDLE hThread, DWORD arg2)
    6172{
    62     dprintf(("TerminateThread\n"));
     73    dprintf(("TerminateThread (%08xh,%08xh)\n",
     74             hThread,
     75             arg2));
     76
    6377    return O32_TerminateThread(hThread, arg2);
    6478}
     
    6781DWORD WIN32API ResumeThread(HANDLE hThread)
    6882{
    69     dprintf(("ResumeThread\n"));
     83    dprintf(("ResumeThread (%08xh)\n",
     84             hThread));
     85
    7086    return O32_ResumeThread(hThread);
    7187}
     
    7490INT WIN32API GetThreadPriority(HANDLE hThread)
    7591{
    76     dprintf(("OS2GetThreadPriority\n"));
     92    dprintf(("OS2GetThreadPriority(%08xh)\n",
     93             hThread));
     94
    7795    return O32_GetThreadPriority(hThread);
    7896}
     
    8199DWORD WIN32API SuspendThread(HANDLE hThread)
    82100{
    83     dprintf(("OS2SuspendThread\n"));
     101    dprintf(("OS2SuspendThread %08xh)\n",
     102             hThread));
     103
    84104    return O32_SuspendThread(hThread);
    85105}
     
    88108BOOL WIN32API SetThreadPriority(HANDLE hThread, int priority)
    89109{
    90     dprintf(("OS2SetThreadPriority\n"));
     110    dprintf(("OS2SetThreadPriority (%08xh,%08xh)\n",
     111             hThread
     112             priority));
     113
    91114    return O32_SetThreadPriority(hThread, priority);
    92115}
     
    95118VOID WIN32API ExitThread(DWORD exitcode)
    96119{
    97   dprintf(("ExitThread\n"));
     120  dprintf(("ExitThread (%08xu)\n",
     121           exitcode));
     122
    98123  O32_ExitThread(exitcode);
    99124}
     
    103128{
    104129  lpUserData = lpData;
    105   pCallback  =pUserCallback;
     130  pCallback  = pUserCallback;
    106131}
    107132//******************************************************************************
     
    127152  delete me;    //only called once
    128153
    129   dprintf(("Win32ThreadProc %d\n", GetCurrentThreadId()));
     154  dprintf(("Win32ThreadProc %d\n",
     155           GetCurrentThreadId()));
     156
    130157  ReplaceExceptionHandler();
    131158  return(winthread(userdata));
Note: See TracChangeset for help on using the changeset viewer.