~ubuntu-branches/ubuntu/wily/zeromq3/wily-proposed

« back to all changes in this revision

Viewing changes to perf/remote_thr.cpp

  • Committer: Package Import Robot
  • Author(s): Alessandro Ghedini
  • Date: 2014-03-16 14:02:28 UTC
  • mfrom: (1.1.6) (6.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20140316140228-ig1sgh7czk59m9ux
Tags: 4.0.4+dfsg-1
* QA upload; orphan the package
  - Upload to unstable
* New upstream release
* Update repack.stub script
* Drop 02_fix-exported-symbols.patch and 03_fix-s390-rdtsc.patch
  (merged upstream)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/*
2
 
    Copyright (c) 2009-2011 250bpm s.r.o.
3
 
    Copyright (c) 2007-2009 iMatix Corporation
4
 
    Copyright (c) 2007-2011 Other contributors as noted in the AUTHORS file
 
2
    Copyright (c) 2007-2013 Contributors as noted in the AUTHORS file
5
3
 
6
4
    This file is part of 0MQ.
7
5
 
67
65
    }
68
66
 
69
67
    for (i = 0; i != message_count; i++) {
70
 
 
71
68
        rc = zmq_msg_init_size (&msg, message_size);
72
69
        if (rc != 0) {
73
70
            printf ("error in zmq_msg_init_size: %s\n", zmq_strerror (errno));
74
71
            return -1;
75
72
        }
76
 
#if defined ZMQ_MAKE_VALGRIND_HAPPY
77
 
        memset (zmq_msg_data (&msg), 0, message_size);
78
 
#endif
79
 
 
80
73
        rc = zmq_sendmsg (s, &msg, 0);
81
74
        if (rc < 0) {
82
75
            printf ("error in zmq_sendmsg: %s\n", zmq_strerror (errno));