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
93c3faef
Commit
93c3faef
authored
Jan 12, 2002
by
Marcus Meissner
Committed by
Alexandre Julliard
Jan 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add refcounting to the thread member of the pipe user.
parent
dea29522
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
3 deletions
+5
-3
named_pipe.c
server/named_pipe.c
+5
-3
No files found.
server/named_pipe.c
View file @
93c3faef
...
...
@@ -48,7 +48,7 @@ struct pipe_user
struct
named_pipe
*
pipe
;
struct
pipe_user
*
next
;
struct
pipe_user
*
prev
;
void
*
thread
;
struct
thread
*
thread
;
void
*
func
;
void
*
overlapped
;
};
...
...
@@ -134,6 +134,7 @@ static void notify_waiter( struct pipe_user *user, unsigned int status)
thread_queue_apc
(
user
->
thread
,
NULL
,
user
->
func
,
APC_ASYNC
,
1
,
2
,
user
->
overlapped
,
status
);
}
if
(
user
->
thread
)
release_object
(
user
->
thread
);
user
->
thread
=
NULL
;
user
->
func
=
NULL
;
user
->
overlapped
=
NULL
;
...
...
@@ -172,6 +173,7 @@ static void pipe_user_destroy( struct object *obj)
if
(
user
->
next
)
user
->
next
->
prev
=
user
->
prev
;
if
(
user
->
prev
)
user
->
prev
->
next
=
user
->
next
;
else
user
->
pipe
->
users
=
user
->
next
;
if
(
user
->
thread
)
release_object
(
user
->
thread
);
release_object
(
user
->
pipe
);
}
...
...
@@ -361,7 +363,7 @@ DECL_HANDLER(connect_named_pipe)
else
{
user
->
state
=
ps_wait_open
;
user
->
thread
=
current
;
user
->
thread
=
(
struct
thread
*
)
grab_object
(
current
)
;
user
->
func
=
req
->
func
;
user
->
overlapped
=
req
->
overlapped
;
...
...
@@ -405,7 +407,7 @@ DECL_HANDLER(wait_named_pipe)
if
(
(
user
=
create_pipe_user
(
pipe
,
-
1
))
)
{
user
->
state
=
ps_wait_connect
;
user
->
thread
=
current
;
user
->
thread
=
(
struct
thread
*
)
grab_object
(
current
)
;
user
->
func
=
req
->
func
;
user
->
overlapped
=
req
->
overlapped
;
/* don't release 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