VirtualBox

Changeset 102210 in vbox


Ignore:
Timestamp:
Nov 21, 2023 2:11:36 PM (17 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
160335
Message:

libs/xpcom/xpcom: Get rid of PR_GetCurrentThread(), bugref:10545

Location:
trunk/src/libs/xpcom18a4/xpcom/glue
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/libs/xpcom18a4/xpcom/glue/nsDebug.h

    r1 r102210  
    3939#define nsDebug_h___
    4040
     41#include <iprt/thread.h>
     42
    4143#ifndef nscore_h___
    4244#include "nscore.h"
     
    272274
    273275#define NS_CheckThreadSafe(owningThread, msg)                 \
    274   NS_ASSERTION(owningThread == PR_GetCurrentThread(), msg)
     276  NS_ASSERTION(owningThread == RTThreadSelf(), msg)
    275277
    276278#endif /* nsDebug_h___ */
  • trunk/src/libs/xpcom18a4/xpcom/glue/nsISupportsImpl.h

    r101967 r102210  
    5151#include "nsTraceRefcnt.h"
    5252#ifdef VBOX
    53 # include "iprt/asm.h"
    54 # include "iprt/assert.h"
     53# include <iprt/asm.h>
     54# include <iprt/assert.h>
     55# include <iprt/thread.h>
    5556#endif
    5657
     
    6263class nsAutoOwningThread {
    6364public:
    64     nsAutoOwningThread() { mThread = PR_GetCurrentThread(); }
     65    nsAutoOwningThread() { mThread = RTThreadSelf(); }
    6566    void *GetThread() const { return mThread; }
    6667
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