Ignore:
Timestamp:
Feb 1, 2012, 12:11:48 PM (14 years ago)
Author:
dmik
Message:

Implement SwitchToThread() API.

This is in particular referenced by Flash 10.3 and above.

File:
1 edited

Legend:

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

    r21916 r21956  
    7474static GLOBALS Globals;
    7575
    76 extern "C" {
    77 
    7876/*****************************************************************************
    7977 * Name      :
     
    109107}
    110108
    111 } // extern "C"
    112 
     109/*****************************************************************************
     110 *****************************************************************************/
     111BOOL WIN32API SwitchToThread(void)
     112{
     113    // It's not clear from CPREF, if DosSleep(1) can allow a switch to another
     114    // CPU, so there is no guarantee of the 100% functional equality
     115    dprintf(("SwitchToThread: not fully supported!"));
     116    APIRET rc = DosSleep(1);
     117    return rc == NO_ERROR;
     118}
Note: See TracChangeset for help on using the changeset viewer.