Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-fonts
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
Aleksandr Isakov
wine-fonts
Commits
2f0af79e
Commit
2f0af79e
authored
Jul 06, 2020
by
Zebediah Figura
Committed by
Vitaly Lipatov
Jul 30, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ntdll: Implement NtPulseEvent().
parent
73b36a1f
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
29 additions
and
0 deletions
+29
-0
esync.c
dlls/ntdll/unix/esync.c
+25
-0
esync.h
dlls/ntdll/unix/esync.h
+1
-0
sync.c
dlls/ntdll/unix/sync.c
+3
-0
No files found.
dlls/ntdll/unix/esync.c
View file @
2f0af79e
...
...
@@ -600,6 +600,31 @@ NTSTATUS esync_reset_event( HANDLE handle )
return
STATUS_SUCCESS
;
}
NTSTATUS
esync_pulse_event
(
HANDLE
handle
)
{
uint64_t
value
=
1
;
struct
esync
*
obj
;
NTSTATUS
ret
;
TRACE
(
"%p.
\n
"
,
handle
);
if
((
ret
=
get_object
(
handle
,
&
obj
)))
return
ret
;
/* This isn't really correct; an application could miss the write.
* Unfortunately we can't really do much better. Fortunately this is rarely
* used (and publicly deprecated). */
if
(
write
(
obj
->
fd
,
&
value
,
sizeof
(
value
)
)
==
-
1
)
return
errno_to_status
(
errno
);
/* Try to give other threads a chance to wake up. Hopefully erring on this
* side is the better thing to do... */
NtYieldExecution
();
read
(
obj
->
fd
,
&
value
,
sizeof
(
value
)
);
return
STATUS_SUCCESS
;
}
NTSTATUS
esync_query_event
(
HANDLE
handle
,
void
*
info
,
ULONG
*
ret_len
)
{
struct
esync
*
obj
;
...
...
dlls/ntdll/unix/esync.h
View file @
2f0af79e
...
...
@@ -33,6 +33,7 @@ extern NTSTATUS esync_create_event( HANDLE *handle, ACCESS_MASK access,
const
OBJECT_ATTRIBUTES
*
attr
,
EVENT_TYPE
type
,
BOOLEAN
initial
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_open_event
(
HANDLE
*
handle
,
ACCESS_MASK
access
,
const
OBJECT_ATTRIBUTES
*
attr
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_pulse_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_query_event
(
HANDLE
handle
,
void
*
info
,
ULONG
*
ret_len
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_reset_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_set_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
...
...
dlls/ntdll/unix/sync.c
View file @
2f0af79e
...
...
@@ -508,6 +508,9 @@ NTSTATUS WINAPI NtPulseEvent( HANDLE handle, LONG *prev_state )
{
NTSTATUS
ret
;
if
(
do_esync
())
return
esync_pulse_event
(
handle
);
SERVER_START_REQ
(
event_op
)
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
...
...
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