Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
749f2294
Commit
749f2294
authored
Nov 09, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcrt4: Implement waiting in RpcMgmtWaitServerListen.
parent
d5fa2cea
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
1 deletion
+18
-1
rpc_server.c
dlls/rpcrt4/rpc_server.c
+18
-1
No files found.
dlls/rpcrt4/rpc_server.c
View file @
749f2294
...
...
@@ -104,6 +104,8 @@ static BOOL std_listen;
static
LONG
manual_listen_count
;
/* total listeners including auto listeners */
static
LONG
listen_count
;
/* event set once all listening is finished */
static
HANDLE
listen_done_event
;
static
UUID
uuid_nil
;
...
...
@@ -772,6 +774,10 @@ static void RPCRT4_stop_listen(BOOL auto_listen)
LIST_FOR_EACH_ENTRY
(
cps
,
&
protseqs
,
RpcServerProtseq
,
entry
)
RPCRT4_sync_with_server_thread
(
cps
);
EnterCriticalSection
(
&
listen_cs
);
if
(
listen_done_event
)
SetEvent
(
listen_done_event
);
listen_done_event
=
0
;
LeaveCriticalSection
(
&
listen_cs
);
return
;
}
assert
(
listen_count
>=
0
);
...
...
@@ -1469,6 +1475,8 @@ RPC_STATUS WINAPI RpcServerListen( UINT MinimumCallThreads, UINT MaxCalls, UINT
*/
RPC_STATUS
WINAPI
RpcMgmtWaitServerListen
(
void
)
{
HANDLE
event
;
TRACE
(
"()
\n
"
);
EnterCriticalSection
(
&
listen_cs
);
...
...
@@ -1477,11 +1485,20 @@ RPC_STATUS WINAPI RpcMgmtWaitServerListen( void )
LeaveCriticalSection
(
&
listen_cs
);
return
RPC_S_NOT_LISTENING
;
}
if
(
listen_done_event
)
{
LeaveCriticalSection
(
&
listen_cs
);
return
RPC_S_ALREADY_LISTENING
;
}
event
=
CreateEventW
(
NULL
,
TRUE
,
FALSE
,
NULL
);
listen_done_event
=
event
;
LeaveCriticalSection
(
&
listen_cs
);
FIXME
(
"not waiting for server calls to finish
\n
"
);
TRACE
(
"waiting for server calls to finish
\n
"
);
WaitForSingleObject
(
event
,
INFINITE
);
TRACE
(
"done waiting
\n
"
);
CloseHandle
(
event
);
return
RPC_S_OK
;
}
...
...
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