void
MXUserListLocks(void)
{
- MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetNativeTID(),
+ MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetThreadID(),
FALSE);
if (perThread != NULL) {
Bool
MXUser_IsCurThreadHoldingLocks(void)
{
- MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetNativeTID(),
+ MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetThreadID(),
FALSE);
return (perThread == NULL) ? FALSE : (perThread->locksHeld != 0);
MX_Rank maxRank;
MXUserPerThread *perThread;
- perThread = MXUserGetPerThread(MXUserGetNativeTID(), FALSE);
+ perThread = MXUserGetPerThread(MXUserGetThreadID(), FALSE);
if (perThread == NULL) {
maxRank = RANK_UNRANKED;
MXUserAcquisitionTracking(MXUserHeader *header, // IN:
Bool checkRank) // IN:
{
- MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetNativeTID(), TRUE);
+ MXUserPerThread *perThread = MXUserGetPerThread(MXUserGetThreadID(), TRUE);
ASSERT_NOT_IMPLEMENTED(perThread->locksHeld < MXUSER_MAX_LOCKS_PER_THREAD);
{
uint32 i;
uint32 lastEntry;
- void *tid = MXUserGetNativeTID();
+ void *tid = MXUserGetThreadID();
MXUserPerThread *perThread = MXUserGetPerThread(tid, FALSE);
/* MXUserAcquisitionTracking should have already created a perThread */
/*
*-----------------------------------------------------------------------------
*
- * MXUserGetNativeTID --
+ * MXUserGetThreadID --
*
- * Gets a native representation of the thread ID, which can be stored
- * in a pointer.
+ * Obtains a unique thread identifier (ID) which can be stored in a
+ * pointer.
*
* Results:
- * Native representation of a thread ID.
+ * As above
*
* Side effects:
* None.
*/
static INLINE void *
-MXUserGetNativeTID(void)
+MXUserGetThreadID(void)
{
/* All thread types must fit into a uintptr_t */