summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_shutdown_stress.cpp19
1 files changed, 11 insertions, 8 deletions
diff --git a/tests/test_shutdown_stress.cpp b/tests/test_shutdown_stress.cpp
index a8079d4..fed67b7 100644
--- a/tests/test_shutdown_stress.cpp
+++ b/tests/test_shutdown_stress.cpp
@@ -24,18 +24,21 @@
#define THREAD_COUNT 100
-void *worker (void *s)
+extern "C"
{
- int rc;
+ static void *worker (void *s)
+ {
+ int rc;
- rc = zmq_connect (s, "tcp://127.0.0.1:5555");
- assert (rc == 0);
+ rc = zmq_connect (s, "tcp://127.0.0.1:5555");
+ assert (rc == 0);
- // Start closing the socket while the connecting process is underway.
- rc = zmq_close (s);
- assert (rc == 0);
+ // Start closing the socket while the connecting process is underway.
+ rc = zmq_close (s);
+ assert (rc == 0);
- return NULL;
+ return NULL;
+ }
}
int main (int argc, char *argv [])