Commit 3afaf6b
Jason M. Miller
Reduce CPU usage when stdin is null
There are some use-cases in which stdin will not be attached to the
shpool client. Right now when that happens, one thread is busy-waiting
on stdin. This fix adds a 200ms delay to the polling.1 parent 0e45a86 commit 3afaf6b
1 file changed
+2
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
34 | 35 | | |
35 | 36 | | |
36 | 37 | | |
| |||
257 | 258 | | |
258 | 259 | | |
259 | 260 | | |
| 261 | + | |
260 | 262 | | |
261 | 263 | | |
262 | 264 | | |
| |||
0 commit comments