SHOW:
|
|
- or go back to the newest paste.
| 1 | bool quit = false; | |
| 2 | ||
| 3 | playbackThread() {
| |
| 4 | while(!quit) {
| |
| 5 | - | //do some stuff |
| 5 | + | blocking_read_from_device_function(); |
| 6 | } | |
| 7 | } | |
| 8 | ||
| 9 | stopStream() {
| |
| 10 | quit = true; | |
| 11 | pj_thread_join(pb_thread); //wait for thread | |
| 12 | } |