Get rid of the TEB flags, they are no longer used.

This commit is contained in:
Alexandre Julliard 2004-04-15 05:04:53 +00:00
parent 6d169747d6
commit a45931c6f3
4 changed files with 2 additions and 10 deletions

View File

@ -99,7 +99,7 @@ static void thread_detach(void)
/* free the 16-bit stack */ /* free the 16-bit stack */
K32WOWGlobalFree16( NtCurrentTeb()->stack_sel ); K32WOWGlobalFree16( NtCurrentTeb()->stack_sel );
NtCurrentTeb()->cur_stack = 0; NtCurrentTeb()->cur_stack = 0;
if (!(NtCurrentTeb()->tibflags & TEBF_WIN32)) TASK_ExitTask(); if (NtCurrentTeb()->Tib.SubSystemTib) TASK_ExitTask();
} }

View File

@ -447,7 +447,6 @@ static DWORD CALLBACK task_start( TDB *pTask )
{ {
DWORD ret; DWORD ret;
NtCurrentTeb()->tibflags &= ~TEBF_WIN32;
NtCurrentTeb()->htask16 = pTask->hSelf; NtCurrentTeb()->htask16 = pTask->hSelf;
NtCurrentTeb()->Tib.SubSystemTib = allocate_win16_tib( pTask ); NtCurrentTeb()->Tib.SubSystemTib = allocate_win16_tib( pTask );

View File

@ -116,7 +116,6 @@ void thread_init(void)
InitializeListHead( &tls_links ); InitializeListHead( &tls_links );
teb = alloc_teb( &size ); teb = alloc_teb( &size );
teb->tibflags = TEBF_WIN32;
teb->request_fd = -1; teb->request_fd = -1;
teb->reply_fd = -1; teb->reply_fd = -1;
teb->wait_fd[0] = -1; teb->wait_fd[0] = -1;
@ -250,7 +249,6 @@ NTSTATUS WINAPI RtlCreateUserThread( HANDLE process, const SECURITY_DESCRIPTOR *
teb->ClientId.UniqueProcess = (HANDLE)GetCurrentProcessId(); teb->ClientId.UniqueProcess = (HANDLE)GetCurrentProcessId();
teb->ClientId.UniqueThread = (HANDLE)tid; teb->ClientId.UniqueThread = (HANDLE)tid;
teb->tibflags = TEBF_WIN32;
teb->exit_code = STILL_ACTIVE; teb->exit_code = STILL_ACTIVE;
teb->request_fd = request_pipe[1]; teb->request_fd = request_pipe[1];
teb->reply_fd = -1; teb->reply_fd = -1;

View File

@ -61,8 +61,7 @@ struct debug_info
typedef struct _TEB typedef struct _TEB
{ {
NT_TIB Tib; /* 12- 00 Thread information block */ NT_TIB Tib; /* 12- 00 Thread information block */
WORD tibflags; /* 1!n 1c Flags (NT: EnvironmentPointer) */ PVOID EnvironmentPointer; /* 12- 1c EnvironmentPointer (win95: tib flags + win16 mutex count) */
WORD mutex_count; /* 1-n 1e Win16 mutex count */
CLIENT_ID ClientId; /* -2- 20 Process and thread id (win95: debug context) */ CLIENT_ID ClientId; /* -2- 20 Process and thread id (win95: debug context) */
HQUEUE16 queue; /* 1!- 28 Message queue (NT: DWORD ActiveRpcHandle)*/ HQUEUE16 queue; /* 1!- 28 Message queue (NT: DWORD ActiveRpcHandle)*/
WORD pad1; /* --n 2a */ WORD pad1; /* --n 2a */
@ -134,10 +133,6 @@ typedef struct _TEB
} TEB; } TEB;
#endif /* WINE_TEB_DEFINED */ #endif /* WINE_TEB_DEFINED */
/* Thread exception flags */
#define TEBF_WIN32 0x0001
#define TEBF_TRAP 0x0002
/* scheduler/thread.c */ /* scheduler/thread.c */
extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size ); extern TEB *THREAD_InitStack( TEB *teb, DWORD stack_size );