c:c_threads:event_handling
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
c:c_threads:event_handling [2021/03/05 20:02] – peter | c: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 ===== | ||
- | 2 threads: | + | Two threads: |
- | | + | |
- | | + | |
<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