User Tools

Site Tools


c:c_threads:event_handling

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
c:c_threads:event_handling [2021/03/05 20:02] peterc:c_threads:event_handling [2021/06/09 11:04] (current) peter
Line 7: Line 7:
 ===== Option 1 - Use a boolean global variable ===== ===== Option 1 - Use a boolean global variable =====
  
-threads:+Two threads:
  
-  thread1 performs some actions, then sets a flag. +  thread1 performs some actions, then sets a flag. 
-  thread2 is waiting for this flag to be set.+  thread2 is waiting for this flag to be set.
  
 <code cpp> <code cpp>
Line 91: Line 91:
 ---- ----
  
-===== Using a Condition Variable =====+===== Option 2 - Using a Condition Variable =====
  
 <code cpp> <code cpp>
c/c_threads/event_handling.1614974574.txt.gz · Last modified: 2021/03/05 20:02 by peter

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki