diff options
Diffstat (limited to 'perf')
| -rw-r--r-- | perf/local_lat.cpp | 6 | ||||
| -rw-r--r-- | perf/local_thr.cpp | 6 | ||||
| -rw-r--r-- | perf/remote_lat.cpp | 6 | ||||
| -rw-r--r-- | perf/remote_thr.cpp | 14 | 
4 files changed, 18 insertions, 14 deletions
| diff --git a/perf/local_lat.cpp b/perf/local_lat.cpp index 4db756d..9f95e9d 100644 --- a/perf/local_lat.cpp +++ b/perf/local_lat.cpp @@ -4,16 +4,16 @@      This file is part of 0MQ.      0MQ is free software; you can redistribute it and/or modify it under -    the terms of the Lesser GNU General Public License as published by +    the terms of the GNU Lesser General Public License as published by      the Free Software Foundation; either version 3 of the License, or      (at your option) any later version.      0MQ is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -    Lesser GNU General Public License for more details. +    GNU Lesser General Public License for more details. -    You should have received a copy of the Lesser GNU General Public License +    You should have received a copy of the GNU Lesser General Public License      along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ diff --git a/perf/local_thr.cpp b/perf/local_thr.cpp index 016826b..677310f 100644 --- a/perf/local_thr.cpp +++ b/perf/local_thr.cpp @@ -4,16 +4,16 @@      This file is part of 0MQ.      0MQ is free software; you can redistribute it and/or modify it under -    the terms of the Lesser GNU General Public License as published by +    the terms of the GNU Lesser General Public License as published by      the Free Software Foundation; either version 3 of the License, or      (at your option) any later version.      0MQ is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -    Lesser GNU General Public License for more details. +    GNU Lesser General Public License for more details. -    You should have received a copy of the Lesser GNU General Public License +    You should have received a copy of the GNU Lesser General Public License      along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ diff --git a/perf/remote_lat.cpp b/perf/remote_lat.cpp index 37535e6..a1124f4 100644 --- a/perf/remote_lat.cpp +++ b/perf/remote_lat.cpp @@ -4,16 +4,16 @@      This file is part of 0MQ.      0MQ is free software; you can redistribute it and/or modify it under -    the terms of the Lesser GNU General Public License as published by +    the terms of the GNU Lesser General Public License as published by      the Free Software Foundation; either version 3 of the License, or      (at your option) any later version.      0MQ is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -    Lesser GNU General Public License for more details. +    GNU Lesser General Public License for more details. -    You should have received a copy of the Lesser GNU General Public License +    You should have received a copy of the GNU Lesser General Public License      along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ diff --git a/perf/remote_thr.cpp b/perf/remote_thr.cpp index 1e69601..c471481 100644 --- a/perf/remote_thr.cpp +++ b/perf/remote_thr.cpp @@ -4,16 +4,16 @@      This file is part of 0MQ.      0MQ is free software; you can redistribute it and/or modify it under -    the terms of the Lesser GNU General Public License as published by +    the terms of the GNU Lesser General Public License as published by      the Free Software Foundation; either version 3 of the License, or      (at your option) any later version.      0MQ is distributed in the hope that it will be useful,      but WITHOUT ANY WARRANTY; without even the implied warranty of      MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the -    Lesser GNU General Public License for more details. +    GNU Lesser General Public License for more details. -    You should have received a copy of the Lesser GNU General Public License +    You should have received a copy of the GNU Lesser General Public License      along with this program.  If not, see <http://www.gnu.org/licenses/>.  */ @@ -21,6 +21,7 @@  #include "../include/zmq_utils.h"  #include <stdio.h>  #include <stdlib.h> +#include <string.h>  int main (int argc, char *argv [])  { @@ -64,11 +65,16 @@ int main (int argc, char *argv [])      }      for (i = 0; i != message_count; i++) { +          rc = zmq_msg_init_size (&msg, message_size);          if (rc != 0) {              printf ("error in zmq_msg_init_size: %s\n", zmq_strerror (errno));              return -1;          } +#if defined ZMQ_MAKE_VALGRIND_HAPPY +        memset (zmq_msg_data (&msg), 0, message_size); +#endif +          rc = zmq_send (s, &msg, 0);          if (rc != 0) {              printf ("error in zmq_send: %s\n", zmq_strerror (errno)); @@ -81,8 +87,6 @@ int main (int argc, char *argv [])          }      } -    zmq_sleep (10); -      rc = zmq_close (s);      if (rc != 0) {          printf ("error in zmq_close: %s\n", zmq_strerror (errno)); | 
