ntdll: Implement job objects

Andrew Cook ariscop at gmail.com
Tue Aug 27 06:52:20 CDT 2013


Origin uses job objects to track open games, currently it needs to be
restarted (a painfully slow and unreliable process) in order to launch
another game.

GameDevTycoon also uses job objects to track child processes, though it
does not appear to require them, it simply spams fixme:IsProcessInJob

job_map_access is currently just grants all permissions, there's an edge
case with IsProcessInJob currently marked todo in the test and it's
job_signalled is implemented completely wrong. given how rarely this
particular primitive is used, this will likely not be an issue.

---
 dlls/ntdll/sync.c              |  94 +++++++++++++--
 dlls/ntdll/tests/Makefile.in   |   1 +
 dlls/ntdll/tests/job.c         | 169 ++++++++++++++++++++++++++
 include/wine/server_protocol.h |  77 +++++++++++-
 server/process.c               | 263
+++++++++++++++++++++++++++++++++++++++++
 server/process.h               |   3 +
 server/protocol.def            |  25 ++++
 server/request.h               |  26 ++++
 server/trace.c                 |  51 ++++++++
 9 files changed, 697 insertions(+), 12 deletions(-)
 create mode 100644 dlls/ntdll/tests/job.c


-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-ntdll-Implement-job-objects.txt
Type: text/x-patch
Size: 32098 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20130827/845b3a6d/attachment-0001.bin>


More information about the wine-patches mailing list