summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-02-11 15:14:30 +0000
committergthaker <gthaker@ae88bc3d-4319-0410-8dbf-d08b4c9d3795>2003-02-11 15:14:30 +0000
commit02ef6441d44f468fa760c35ad12a3cbe2d0c0afb (patch)
tree2fc38e0f3d77e070094b1c0798c1e55455700d5a
parent3d61c0f739ea3b7e20edce74877c3877d109ea57 (diff)
downloadATCD-02ef6441d44f468fa760c35ad12a3cbe2d0c0afb.tar.gz
Function unmarshalledOctetServer, a thread function, previously had
return type void*. This would not compile under MS VC++ 6.0. Changing the return type to ACE_THR_FUNCTION_RETURN solved the problem.
-rw-r--r--performance-tests/SCTP/SOCK_SEQPACK_srv.cpp8
1 files changed, 3 insertions, 5 deletions
diff --git a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
index fda63457728..94578e5ad70 100644
--- a/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
+++ b/performance-tests/SCTP/SOCK_SEQPACK_srv.cpp
@@ -31,7 +31,7 @@ struct ArgStruct {
// thread function that serves the client for the UnMarshalled Octet
// test
-static void * unmarshalledOctetServer (void *arg){
+static ACE_THR_FUNC_RETURN unmarshalledOctetServer (void *arg){
// unbundle the arguments
ArgStruct * args = ACE_reinterpret_cast(ArgStruct *,arg);
@@ -177,8 +177,6 @@ static void run_server (ACE_HANDLE handle)
// deallocate the header buffer
delete[] hdrBuf;
- ACE_THR_FUNC server=unmarshalledOctetServer;
-
// bundle up the arguments
ArgStruct * args = new ArgStruct;
args->stream = dataModeStream;
@@ -187,14 +185,14 @@ static void run_server (ACE_HANDLE handle)
#if defined (ACE_HAS_THREADS)
// Spawn a new thread and run the new connection in that thread of
// control using the <server> function as the entry point.
- if (ACE_Thread_Manager::instance ()->spawn (server,
+ if (ACE_Thread_Manager::instance ()->spawn (unmarshalledOctetServer,
ACE_reinterpret_cast(void *,args),
THR_DETACHED) == -1)
ACE_ERROR ((LM_ERROR,
"(%P|%t) %p\n",
"spawn"));
#else
- (*server) (ACE_reinterpret_cast(void *, args));
+ (*unmarshalledOctetServer) (ACE_reinterpret_cast(void *, args));
#endif /* ACE_HAS_THREADS */
}