Changeset 1335 for trunk/dll/timer.c


Ignore:
Timestamp:
Dec 13, 2008, 12:49:02 AM (17 years ago)
Author:
Steven Levine
Message:

Ticket 26: Add exception handlers to all threads using xbeginthread

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dll/timer.c

    r1227 r1335  
    77
    88  Copyright (c) 1993-98 M. Kimes
    9   Copyright (c) 2006 Steven H. Levine
     9  Copyright (c) 2006, 2008 Steven H. Levine
    1010
    1111  22 Jul 06 SHL Check more run time errors
    1212  20 Aug 07 GKY Move #pragma alloc_text to end for OpenWatcom compat
     13  10 Dec 08 SHL Integrate exception handler support
    1314
    1415***********************************************************************/
    1516
    16 #include <process.h>                    // _beginthread
     17// #include <process.h>                 // _beginthread
    1718
    1819#define INCL_DOS
     
    3031#include "timer.h"
    3132#include "misc.h"                       // PostMsg
     33#include "excputil.h"                   // xbeginthread
    3234
    3335static PSZ pszSrcFile = __FILE__;
     
    7173BOOL StartTimer(void)
    7274{
    73   INT rc = _beginthread(TimerThread, NULL, 32768, (PVOID) 0);
    74 
    75   if (rc == -1)
    76     Runtime_Error(pszSrcFile, __LINE__,
    77                   GetPString(IDS_COULDNTSTARTTHREADTEXT));
     75  INT rc = xbeginthread(TimerThread,
     76                        32768,
     77                        (PVOID)0,
     78                        pszSrcFile,
     79                        __LINE__);
    7880
    7981  return rc != -1;
Note: See TracChangeset for help on using the changeset viewer.