Ignore:
Timestamp:
Jan 5, 2000, 8:39:57 PM (26 years ago)
Author:
sandervl
Message:

changes for OpenThreadToken

File:
1 edited

Legend:

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

    r2298 r2329  
    1 /* $Id: wprocess.cpp,v 1.64 2000-01-02 22:09:02 sandervl Exp $ */
     1/* $Id: wprocess.cpp,v 1.65 2000-01-05 19:39:57 sandervl Exp $ */
    22
    33/*
     
    101101}
    102102//******************************************************************************
     103//******************************************************************************
     104THDB *WIN32API GetTHDBFromThreadHandle(HANDLE hThread)
     105{
     106 THDB *thdb = threadList;
     107
     108   threadListMutex.enter();
     109   while(thdb) {
     110        if(thdb->hThread == hThread) {
     111                break;
     112        }
     113        thdb = thdb->next;
     114   }
     115   threadListMutex.leave();
     116   return thdb;
     117}
     118//******************************************************************************
    103119// Set up the TIB selector and memory for the current thread
    104120//******************************************************************************
     
    154170   thdb->pWsockData      = NULL;
    155171   thdb->threadId        = GetCurrentThreadId();
     172   thdb->hThread         = GetCurrentThread();
    156173
    157174   threadListMutex.enter();
Note: See TracChangeset for help on using the changeset viewer.