Skip to content

Commit

Permalink
Made it all compile with Batsched
Browse files Browse the repository at this point in the history
Removed ZMQ deprecation warnings
  • Loading branch information
henricasanova committed Oct 6, 2023
1 parent 43a464d commit 2a8b7ac
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,8 @@ namespace wrench {
useconds_t trials;
for (trials = 0; trials < max_num_trials; trials++) {
usleep(100 + 100 * trials * trials);
int ret = socket.recv(&reply, ZMQ_DONTWAIT);
// int ret = socket.recv(&reply, ZMQ_DONTWAIT);
zmq::recv_result_t ret = socket.recv(reply, zmq::recv_flags::dontwait);
if (ret > 0) {
break;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,7 +290,7 @@ namespace wrench {

// Get the reply.
zmq::message_t reply;
socket.recv(&reply);
auto ret = socket.recv(reply, zmq::recv_flags::none);

// Process the reply
std::string reply_data;
Expand Down

0 comments on commit 2a8b7ac

Please sign in to comment.