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
7a7440d2
Commit
7a7440d2
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 NtResetEvent().
parent
491bc85e
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
20 additions
and
0 deletions
+20
-0
esync.c
dlls/ntdll/unix/esync.c
+15
-0
esync.h
dlls/ntdll/unix/esync.h
+1
-0
sync.c
dlls/ntdll/unix/sync.c
+4
-0
No files found.
dlls/ntdll/unix/esync.c
View file @
7a7440d2
...
@@ -329,6 +329,21 @@ NTSTATUS esync_set_event( HANDLE handle )
...
@@ -329,6 +329,21 @@ NTSTATUS esync_set_event( HANDLE handle )
return
STATUS_SUCCESS
;
return
STATUS_SUCCESS
;
}
}
NTSTATUS
esync_reset_event
(
HANDLE
handle
)
{
uint64_t
value
;
struct
esync
*
obj
;
TRACE
(
"%p.
\n
"
,
handle
);
if
(
!
(
obj
=
get_cached_object
(
handle
)))
return
STATUS_INVALID_HANDLE
;
if
(
read
(
obj
->
fd
,
&
value
,
sizeof
(
value
)
)
==
-
1
&&
errno
!=
EWOULDBLOCK
&&
errno
!=
EAGAIN
)
ERR
(
"read: %s
\n
"
,
strerror
(
errno
));
return
STATUS_SUCCESS
;
}
#define TICKSPERSEC 10000000
#define TICKSPERSEC 10000000
#define TICKSPERMSEC 10000
#define TICKSPERMSEC 10000
...
...
dlls/ntdll/unix/esync.h
View file @
7a7440d2
...
@@ -28,6 +28,7 @@ extern NTSTATUS esync_release_semaphore( HANDLE handle, ULONG count, ULONG *prev
...
@@ -28,6 +28,7 @@ extern NTSTATUS esync_release_semaphore( HANDLE handle, ULONG count, ULONG *prev
extern
NTSTATUS
esync_create_event
(
HANDLE
*
handle
,
ACCESS_MASK
access
,
extern
NTSTATUS
esync_create_event
(
HANDLE
*
handle
,
ACCESS_MASK
access
,
const
OBJECT_ATTRIBUTES
*
attr
,
EVENT_TYPE
type
,
BOOLEAN
initial
)
DECLSPEC_HIDDEN
;
const
OBJECT_ATTRIBUTES
*
attr
,
EVENT_TYPE
type
,
BOOLEAN
initial
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_reset_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_set_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_set_event
(
HANDLE
handle
)
DECLSPEC_HIDDEN
;
extern
NTSTATUS
esync_wait_objects
(
DWORD
count
,
const
HANDLE
*
handles
,
BOOLEAN
wait_any
,
extern
NTSTATUS
esync_wait_objects
(
DWORD
count
,
const
HANDLE
*
handles
,
BOOLEAN
wait_any
,
...
...
dlls/ntdll/unix/sync.c
View file @
7a7440d2
...
@@ -463,8 +463,12 @@ NTSTATUS WINAPI NtSetEvent( HANDLE handle, LONG *prev_state )
...
@@ -463,8 +463,12 @@ NTSTATUS WINAPI NtSetEvent( HANDLE handle, LONG *prev_state )
*/
*/
NTSTATUS
WINAPI
NtResetEvent
(
HANDLE
handle
,
LONG
*
prev_state
)
NTSTATUS
WINAPI
NtResetEvent
(
HANDLE
handle
,
LONG
*
prev_state
)
{
{
/* This comment is a dummy to make sure this patch applies in the right place. */
NTSTATUS
ret
;
NTSTATUS
ret
;
if
(
do_esync
())
return
esync_reset_event
(
handle
);
SERVER_START_REQ
(
event_op
)
SERVER_START_REQ
(
event_op
)
{
{
req
->
handle
=
wine_server_obj_handle
(
handle
);
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