Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
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-cw
Commits
15ca8209
Commit
15ca8209
authored
Jun 17, 2004
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Properly reset msg_thread when releasing the thread input structure.
parent
3d60a192
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
2 deletions
+19
-2
queue.c
server/queue.c
+19
-2
No files found.
server/queue.c
View file @
15ca8209
...
...
@@ -204,6 +204,22 @@ static struct thread_input *create_thread_input(void)
return
input
;
}
/* release the thread input data of a given thread */
static
void
release_thread_input
(
struct
thread
*
thread
)
{
struct
thread_input
*
input
=
thread
->
queue
->
input
;
if
(
!
input
)
return
;
if
(
input
->
msg_thread
==
thread
)
{
release_object
(
input
->
msg_thread
);
input
->
msg_thread
=
NULL
;
input
->
msg
=
NULL
;
}
release_object
(
input
);
thread
->
queue
->
input
=
NULL
;
}
/* create a message queue object */
static
struct
msg_queue
*
create_msg_queue
(
struct
thread
*
thread
,
struct
thread_input
*
input
)
{
...
...
@@ -257,6 +273,7 @@ void free_msg_queue( struct thread *thread )
process
->
idle_event
=
NULL
;
}
}
release_thread_input
(
thread
);
release_object
(
thread
->
queue
);
thread
->
queue
=
NULL
;
}
...
...
@@ -807,7 +824,7 @@ int attach_thread_input( struct thread *thread_from, struct thread *thread_to )
if
(
thread_from
->
queue
)
{
release_
object
(
thread_from
->
queue
->
input
);
release_
thread_input
(
thread_from
);
thread_from
->
queue
->
input
=
input
;
}
else
...
...
@@ -831,7 +848,7 @@ static void detach_thread_input( struct thread *thread_from, struct thread *thre
}
if
((
input
=
create_thread_input
()))
{
release_
object
(
thread_from
->
queue
->
input
);
release_
thread_input
(
thread_from
);
thread_from
->
queue
->
input
=
input
;
}
}
...
...
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