mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-15 02:07:59 +08:00
parent
d95f8c5f55
commit
d9d7d9be54
@ -19,6 +19,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#include "../include/zmq.h"
|
||||
#include "../include/zmq_utils.h"
|
||||
#include <errno.h>
|
||||
#include <stdlib.h>
|
||||
#include <string.h>
|
||||
@ -86,7 +87,7 @@ static void *server (void *)
|
||||
rc = zmq_term (context);
|
||||
assert (rc == 0);
|
||||
|
||||
pthread_exit(NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
static void *worker (void *)
|
||||
@ -129,7 +130,7 @@ static void *worker (void *)
|
||||
rc = zmq_term (context);
|
||||
assert (rc == 0);
|
||||
|
||||
pthread_exit(NULL);
|
||||
return NULL;
|
||||
}
|
||||
|
||||
int main (void)
|
||||
@ -170,7 +171,7 @@ int main (void)
|
||||
assert(rc >= 0);
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
zmq_sleep (1);
|
||||
seen = 0;
|
||||
for (int i = 0; i < 10; ++i)
|
||||
{
|
||||
@ -229,7 +230,7 @@ int main (void)
|
||||
assert (rc >= 0);
|
||||
}
|
||||
|
||||
sleep(1);
|
||||
zmq_sleep (1);
|
||||
|
||||
seen = 0;
|
||||
for (int i = 0; i < 10; ++i)
|
||||
|
Loading…
x
Reference in New Issue
Block a user