Skip to content

Commit

Permalink
dd
Browse files Browse the repository at this point in the history
  • Loading branch information
deanlee committed May 29, 2024
1 parent 4e11eba commit e785560
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions messaging/impl_msgq.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ Message *MSGQSubSocket::receive(bool non_blocking) {
int64_t timieout_ns = ((timeout != -1) ? timeout : 100) * 1000000;
int64_t remaining = timieout_ns;
auto start = std::chrono::steady_clock::now();

while (rc == 0 && remaining > 0) {
struct timespec ts {remaining / 1000000000, remaining % 1000000000};
int ret = sigtimedwait(&mask, nullptr, &ts);
Expand Down

0 comments on commit e785560

Please sign in to comment.