Mercurial > dwindows
comparison ios/dw.m @ 2635:3ec675648cf5
iOS: _dw_main_iteration() never seems to return NO.
So remove the while() and just let it loop on trylock.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Wed, 11 Aug 2021 11:46:36 +0000 |
parents | 401a3b9f21ba |
children | b7cc83cf70fa |
comparison
equal
deleted
inserted
replaced
2634:4d1bcfc617b2 | 2635:3ec675648cf5 |
---|---|
9823 if(DWThread == pthread_self()) | 9823 if(DWThread == pthread_self()) |
9824 { | 9824 { |
9825 while(pthread_mutex_trylock(mutex) != 0) | 9825 while(pthread_mutex_trylock(mutex) != 0) |
9826 { | 9826 { |
9827 /* Process any pending events */ | 9827 /* Process any pending events */ |
9828 while(_dw_main_iteration([NSDate dateWithTimeIntervalSinceNow:0.01])) | 9828 _dw_main_iteration([NSDate dateWithTimeIntervalSinceNow:0.01]); |
9829 { | |
9830 /* Just loop */ | |
9831 } | |
9832 } | 9829 } |
9833 } | 9830 } |
9834 else | 9831 else |
9835 { | 9832 { |
9836 pthread_mutex_lock(mutex); | 9833 pthread_mutex_lock(mutex); |