Skip to content

Commit

Permalink
adding slightly longer internal loop delays seems to prevent processor
Browse files Browse the repository at this point in the history
lock
  • Loading branch information
madhephaestus committed Apr 9, 2015
1 parent 688b21c commit a2c3e2b
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -575,7 +575,7 @@ public void write(byte[] src) throws IOException {
write.waitUntilComplete();

while (!write.isComplete()) {
ThreadUtil.wait(0, 1);
ThreadUtil.wait(1);
}

} catch (Exception e) {// TODO Auto-generated catch block
Expand Down Expand Up @@ -618,7 +618,7 @@ public boolean loadPacketFromPhy(ByteList bytesToPacketBuffer)
got = read.getActualLength();

while (!read.isComplete()) {
ThreadUtil.wait(0, 1);
ThreadUtil.wait(1);
}

} catch ( IllegalArgumentException
Expand Down

0 comments on commit a2c3e2b

Please sign in to comment.