Ignore:
Timestamp:
Mar 5, 2014 6:48:59 AM (8 years ago)
Author:
riza
Message:

Re #1704:

  • Fix duplicate code on os_winphone.h
  • Change the use of PJ_WIN32_WINPHONE to follow the code convention
  • Fix incorrect link of the Thread library
  • Handle exception raised from select() API. However the break window will still be shown when debugging on Visual Studio. To disable it, from Debug>Exceptions>Win32 Exceptions> unmark the "An invalid handle was specified” exception.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • pjproject/branches/projects/winphone/third_party/threademulation/include/ThreadEmulation.h

    r4618 r4777  
    3434 
    3535#ifdef __cplusplus 
    36 namespace ThreadEmulation 
    37 { 
    38     extern "C" { 
     36//namespace ThreadEmulation 
     37//{ 
     38extern "C"  
     39    { 
    3940#endif 
    4041    #ifndef CREATE_SUSPENDED 
     
    4243    #endif 
    4344 
    44     HANDLE WINAPI CreateThread(_In_opt_ LPSECURITY_ATTRIBUTES unusedThreadAttributes, _In_ SIZE_T unusedStackSize, _In_ LPTHREAD_START_ROUTINE lpStartAddress, _In_opt_ LPVOID lpParameter, _In_ DWORD dwCreationFlags, _Out_opt_ LPDWORD unusedThreadId); 
     45    HANDLE WINAPI CreateThreadRT(_In_opt_ LPSECURITY_ATTRIBUTES unusedThreadAttributes, _In_ SIZE_T unusedStackSize, _In_ LPTHREAD_START_ROUTINE lpStartAddress, _In_opt_ LPVOID lpParameter, _In_ DWORD dwCreationFlags, _Out_opt_ LPDWORD unusedThreadId); 
     46    DWORD WINAPI ResumeThreadRT(_In_ HANDLE hThread); 
     47    BOOL WINAPI SetThreadPriorityRT(_In_ HANDLE hThread, _In_ int nPriority); 
     48     
     49    VOID WINAPI SleepRT(_In_ DWORD dwMilliseconds); 
    4550 
    46     DWORD WINAPI ResumeThread(_In_ HANDLE hThread); 
    47     BOOL WINAPI SetThreadPriority(_In_ HANDLE hThread, _In_ int nPriority); 
    48      
    49     VOID WINAPI Sleep(_In_ DWORD dwMilliseconds); 
    50  
    51     DWORD WINAPI TlsAlloc(); 
    52     BOOL WINAPI TlsFree(_In_ DWORD dwTlsIndex); 
    53     LPVOID WINAPI TlsGetValue(_In_ DWORD dwTlsIndex); 
    54     BOOL WINAPI TlsSetValue(_In_ DWORD dwTlsIndex, _In_opt_ LPVOID lpTlsValue); 
     51    DWORD WINAPI TlsAllocRT(); 
     52    BOOL WINAPI TlsFreeRT(_In_ DWORD dwTlsIndex); 
     53    LPVOID WINAPI TlsGetValueRT(_In_ DWORD dwTlsIndex); 
     54    BOOL WINAPI TlsSetValueRT(_In_ DWORD dwTlsIndex, _In_opt_ LPVOID lpTlsValue); 
    5555     
    5656    void WINAPI TlsShutdown(); 
    57  
    5857#ifdef __cplusplus 
    5958    } 
    60 } 
    6159#endif 
Note: See TracChangeset for help on using the changeset viewer.