Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- bool quit = false;
- playbackThread() {
- while(!quit) {
- //do some stuff
- }
- }
- stopStream() {
- quit = true;
- pj_thread_join(pb_thread); //wait for thread
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement