Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
3ef93229
Commit
3ef93229
authored
Apr 13, 2000
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Cleanup thread stack allocation. Use a single VirtualAlloc for TEB and
the various stacks.
parent
86ff8c08
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
108 additions
and
108 deletions
+108
-108
thread.h
include/thread.h
+1
-1
process.c
scheduler/process.c
+1
-2
thread.c
scheduler/thread.c
+106
-105
No files found.
include/thread.h
View file @
3ef93229
...
...
@@ -119,7 +119,7 @@ typedef struct _TEB
/* scheduler/thread.c */
extern
TEB
*
THREAD_CreateInitialThread
(
struct
_PDB
*
pdb
,
int
server_fd
);
extern
TEB
*
THREAD_Create
(
struct
_PDB
*
pdb
,
void
*
pid
,
void
*
tid
,
int
fd
,
DWORD
flags
,
extern
TEB
*
THREAD_Create
(
struct
_PDB
*
pdb
,
void
*
pid
,
void
*
tid
,
int
fd
,
DWORD
stack_size
,
BOOL
alloc_stack16
);
extern
BOOL
THREAD_IsWin16
(
TEB
*
thdb
);
extern
TEB
*
THREAD_IdToTEB
(
DWORD
id
);
...
...
scheduler/process.c
View file @
3ef93229
...
...
@@ -557,8 +557,7 @@ PDB *PROCESS_Create( NE_MODULE *pModule, HFILE hFile, LPCSTR cmd_line, LPCSTR en
/* Create the main thread */
if
(
!
(
teb
=
THREAD_Create
(
pdb
,
req
->
pid
,
req
->
tid
,
fd
,
flags
&
CREATE_SUSPENDED
,
size
,
alloc_stack16
)))
goto
error
;
if
(
!
(
teb
=
THREAD_Create
(
pdb
,
req
->
pid
,
req
->
tid
,
fd
,
size
,
alloc_stack16
)))
goto
error
;
teb
->
startup
=
PROCESS_Start
;
fd
=
-
1
;
/* don't close it */
...
...
scheduler/thread.c
View file @
3ef93229
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment