| 3165 | SK_LazyGlobal <dispatch_queue_s> _SK_SetWindowLongPtrW_work; |
| 3166 | |
| 3167 | void |
| 3168 | SK_Window_WaitForAsyncSetWindowLong (void) |
| 3169 | { |
| 3170 | int sleepy_spins = 0; |
| 3171 | int alert_spins = 0; |
| 3172 | |
| 3173 | while (! ( _SK_SetWindowLongPtrW_work->queued.empty () && |
| 3174 | _SK_SetWindowLongPtrA_work->queued.empty () )) |
| 3175 | { |
| 3176 | if ( ++alert_spins < 3 ) |
| 3177 | continue; |
| 3178 | |
| 3179 | if ( ++sleepy_spins > 1 ) |
| 3180 | return; |
| 3181 | |
| 3182 | SK_SleepEx (1, FALSE); |
| 3183 | } |
| 3184 | } |
| 3185 | |
| 3186 | LONG_PTR |
| 3187 | WINAPI |
no test coverage detected