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
3a1a190f
Commit
3a1a190f
authored
May 10, 2007
by
Peter Oberndorfer
Committed by
Alexandre Julliard
May 11, 2007
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rpcss: Use correct prototype for thread function.
parent
849a0fcf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
np_server.c
programs/rpcss/np_server.c
+6
-4
No files found.
programs/rpcss/np_server.c
View file @
3a1a190f
...
...
@@ -163,7 +163,7 @@ static void RPCSS_ServerProcessMessage(PRPCSS_NP_MESSAGE pMsg, PRPCSS_NP_REPLY p
}
/* each message gets its own thread. this is it. */
static
VOID
HandlerThread
(
LPVOID
lpvPipeHandle
)
static
DWORD
WINAPI
HandlerThread
(
LPVOID
lpvPipeHandle
)
{
RPCSS_NP_MESSAGE
msg
,
vardata_payload_msg
;
char
*
c
,
*
vardata
=
NULL
;
...
...
@@ -247,9 +247,10 @@ static VOID HandlerThread(LPVOID lpvPipeHandle)
DisconnectNamedPipe
(
mypipe
);
CloseHandle
(
mypipe
);
InterlockedDecrement
(
&
srv_thread_count
);
return
0
;
}
static
VOID
NPMainWorkThread
(
LPVOID
ignored
)
static
DWORD
WINAPI
NPMainWorkThread
(
LPVOID
ignored
)
{
BOOL
connected
;
HANDLE
hthread
,
master_mutex
=
RPCSS_GetMasterMutex
();
...
...
@@ -272,7 +273,7 @@ static VOID NPMainWorkThread(LPVOID ignored)
hthread
=
CreateThread
(
NULL
,
/* no security attribute */
0
,
/* default stack size */
(
LPTHREAD_START_ROUTINE
)
HandlerThread
,
HandlerThread
,
(
LPVOID
)
np_server_end
,
/* thread parameter */
0
,
/* not suspended */
&
threadid
/* returns thread ID (not used) */
...
...
@@ -330,6 +331,7 @@ static VOID NPMainWorkThread(LPVOID ignored)
}
}
WINE_TRACE
(
"Server thread shutdown.
\n
"
);
return
0
;
}
static
HANDLE
RPCSS_NPConnect
(
void
)
...
...
@@ -514,7 +516,7 @@ BOOL RPCSS_BecomePipeServer(void)
hthread
=
CreateThread
(
NULL
,
/* no security attribute */
0
,
/* default stack size */
(
LPTHREAD_START_ROUTINE
)
NPMainWorkThread
,
NPMainWorkThread
,
NULL
,
/* thread parameter */
0
,
/* not suspended */
&
threadid
/* returns thread ID (not used) */
...
...
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