Commit dbfd4ce
committed
examples: use exit() instead of pthread_exit() from main thread.
OSX seems to spawn an extra thread for GLUT. As a result, we can't just call
pthread_exit() because there's still one thread left after we kill all the
threads we directly spawned, so the examples never stop running.
Signed-off-by: Drew Fisher <drew.m.fisher@gmail.com>1 parent 0b72b1b commit dbfd4ce
2 files changed
Lines changed: 4 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
156 | | - | |
| 156 | + | |
| 157 | + | |
157 | 158 | | |
158 | 159 | | |
159 | 160 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
178 | 178 | | |
179 | 179 | | |
180 | 180 | | |
181 | | - | |
| 181 | + | |
| 182 | + | |
182 | 183 | | |
183 | 184 | | |
184 | 185 | | |
| |||
0 commit comments