Commit ef794925 authored by Martin Hurton's avatar Martin Hurton
parent d2ee38ac
...@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>. ...@@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
*/ */
#include "../include/zmq.h" #include "../include/zmq.h"
#include "../include/zmq_utils.h"
#include <errno.h> #include <errno.h>
#include <stdlib.h> #include <stdlib.h>
#include <string.h> #include <string.h>
...@@ -86,7 +87,7 @@ static void *server (void *) ...@@ -86,7 +87,7 @@ static void *server (void *)
rc = zmq_term (context); rc = zmq_term (context);
assert (rc == 0); assert (rc == 0);
pthread_exit(NULL); return NULL;
} }
static void *worker (void *) static void *worker (void *)
...@@ -129,7 +130,7 @@ static void *worker (void *) ...@@ -129,7 +130,7 @@ static void *worker (void *)
rc = zmq_term (context); rc = zmq_term (context);
assert (rc == 0); assert (rc == 0);
pthread_exit(NULL); return NULL;
} }
int main (void) int main (void)
...@@ -170,7 +171,7 @@ int main (void) ...@@ -170,7 +171,7 @@ int main (void)
assert(rc >= 0); assert(rc >= 0);
} }
sleep(1); zmq_sleep (1);
seen = 0; seen = 0;
for (int i = 0; i < 10; ++i) for (int i = 0; i < 10; ++i)
{ {
...@@ -229,7 +230,7 @@ int main (void) ...@@ -229,7 +230,7 @@ int main (void)
assert (rc >= 0); assert (rc >= 0);
} }
sleep(1); zmq_sleep (1);
seen = 0; seen = 0;
for (int i = 0; i < 10; ++i) for (int i = 0; i < 10; ++i)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment