/* $Id: self.c,v 1.4 2002/10/29 04:45:38 rex Exp $ */ /* * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS POSIX+ Subsystem * FILE: subsys/psx/lib/psxdll/pthread/self.c * PURPOSE: get calling thread's ID * PROGRAMMER: KJK::Hyperion * UPDATE HISTORY: * 27/12/2001: Created */ #include #include #include pthread_t pthread_self(void) { return ((pthread_t)(NtCurrentTeb()->Cid).UniqueThread); } /* EOF */