MCPcopy Create free account
hub / github.com/SpecialKO/SpecialK / SK_Window_WaitForAsyncSetWindowLong

Function SK_Window_WaitForAsyncSetWindowLong

src/window.cpp:3167–3184  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3165SK_LazyGlobal <dispatch_queue_s> _SK_SetWindowLongPtrW_work;
3166
3167void
3168SK_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
3186LONG_PTR
3187WINAPI

Callers 7

SK_SetWindowLongPtrAFunction · 0.85
SK_SetWindowLongPtrWFunction · 0.85
SK_AdjustBorderFunction · 0.85
SK_DetourWindowProcFunction · 0.85
SK_InitWindowFunction · 0.85

Calls 2

SK_SleepExFunction · 0.85
emptyMethod · 0.45

Tested by

no test coverage detected