VirtualBox

Ignore:
Timestamp:
Feb 22, 2015 11:29:25 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
98447
Message:

IPRT/R0Drv: Fix (windows & solaris) / kludge (the rest) for thread termination racing IPRT termination race in ring-0.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r0drv/haiku/thread2-r0drv-haiku.c

    r43403 r54358  
    4141
    4242
    43 int rtThreadNativeInit(void)
     43DECLHIDDEN(int) rtThreadNativeInit(void)
    4444{
    4545    /* No TLS in Ring-0. :-/ */
     
    5454
    5555
    56 int rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)
     56DECLHIDDEN(int) rtThreadNativeSetPriority(PRTTHREADINT pThread, RTTHREADTYPE enmType)
    5757{
    5858    int32 iPriority;
     
    8282
    8383
    84 int rtThreadNativeAdopt(PRTTHREADINT pThread)
     84DECLHIDDEN(int) rtThreadNativeAdopt(PRTTHREADINT pThread)
    8585{
    8686    return VERR_NOT_IMPLEMENTED;
     
    8888
    8989
    90 void rtThreadNativeDestroy(PRTTHREADINT pThread)
     90DECLHIDDEN(void) rtThreadNativeWaitKludge(PRTTHREADINT pThread)
     91{
     92    /** @todo fix RTThreadWait/RTR0Term race on freebsd. */
     93    RTThreadSleep(1);
     94}
     95
     96
     97DECLHIDDEN(void) rtThreadNativeDestroy(PRTTHREADINT pThread)
    9198{
    9299    NOREF(pThread);
     
    115122
    116123
    117 int rtThreadNativeCreate(PRTTHREADINT pThreadInt, PRTNATIVETHREAD pNativeThread)
     124DECLHIDDEN(int) rtThreadNativeCreate(PRTTHREADINT pThreadInt, PRTNATIVETHREAD pNativeThread)
    118125{
    119126    thread_id NativeThread;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette