MCPcopy Create free account
hub / github.com/dborth/fceugx / StopNetworkThread

Function StopNetworkThread

source/networkop.cpp:129–140  ·  view source on GitHub ↗

* StopNetworkThread * * Signals the network thread to stop ***************************************************************************/

Source from the content-addressed store, hash-verified

127 * Signals the network thread to stop
128 ***************************************************************************/
129void StopNetworkThread()
130{
131 if(networkthread == LWP_THREAD_NULL || !LWP_ThreadIsSuspended(networkthread))
132 return;
133
134 netHalt = 2;
135 LWP_ContinueThread(networkthread);
136
137 // wait for thread to finish
138 LWP_JoinThread(networkthread, NULL);
139 networkthread = LWP_THREAD_NULL;
140}
141
142#endif
143

Callers 1

InitializeNetworkFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected