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
a7247df6
Commit
a7247df6
authored
Apr 03, 2015
by
Sebastian Lackner
Committed by
Alexandre Julliard
Apr 07, 2015
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
server: Implement waiting for job objects.
parent
7984fb9f
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
3 deletions
+6
-3
process.c
dlls/kernel32/tests/process.c
+0
-2
process.c
server/process.c
+6
-1
No files found.
dlls/kernel32/tests/process.c
View file @
a7247df6
...
...
@@ -2469,7 +2469,6 @@ static void test_WaitForJobObject(void)
ok
(
ret
,
"TerminateJobObject error %u
\n
"
,
GetLastError
());
dwret
=
WaitForSingleObject
(
job
,
500
);
todo_wine
ok
(
dwret
==
WAIT_OBJECT_0
||
broken
(
dwret
==
WAIT_TIMEOUT
),
"WaitForSingleObject returned %u
\n
"
,
dwret
);
...
...
@@ -2478,7 +2477,6 @@ static void test_WaitForJobObject(void)
CloseHandle
(
pi
.
hProcess
);
CloseHandle
(
pi
.
hThread
);
CloseHandle
(
job
);
todo_wine
win_skip
(
"TerminateJobObject doesn't signal job, skipping tests
\n
"
);
return
;
}
...
...
server/process.c
View file @
a7247df6
...
...
@@ -149,6 +149,7 @@ struct job
int
num_processes
;
/* count of running processes */
unsigned
int
limit_flags
;
/* limit flags */
int
terminating
;
/* job is terminating */
int
signaled
;
/* job is signaled */
struct
completion
*
completion_port
;
/* associated completion port */
apc_param_t
completion_key
;
/* key to send with completion messages */
};
...
...
@@ -191,6 +192,7 @@ static struct job *create_job_object( struct directory *root, const struct unico
job
->
num_processes
=
0
;
job
->
limit_flags
=
0
;
job
->
terminating
=
0
;
job
->
signaled
=
0
;
job
->
completion_port
=
NULL
;
job
->
completion_key
=
0
;
}
...
...
@@ -281,6 +283,8 @@ static void terminate_job( struct job *job, int exit_code )
}
job
->
terminating
=
0
;
job
->
signaled
=
1
;
wake_up
(
&
job
->
obj
,
0
);
}
static
void
job_destroy
(
struct
object
*
obj
)
...
...
@@ -303,7 +307,8 @@ static void job_dump( struct object *obj, int verbose )
static
int
job_signaled
(
struct
object
*
obj
,
struct
wait_queue_entry
*
entry
)
{
return
0
;
struct
job
*
job
=
(
struct
job
*
)
obj
;
return
job
->
signaled
;
}
struct
ptid_entry
...
...
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