Just forgot to add to my previous email that I also tried using synchronize
together with wait/notify instead of an EasyThread, but saw the same issue

Thanks

Javier

On Mon, 18 Jan 2021, 23:51 Marisole Aromatherapy, <[email protected]>
wrote:

> I come here seeking help after having nearly given up on a threading
> problem I face on iOS. Everything works well on Android, but on iOS, very
> randomly, the UI freezes and becomes unresponsive
>
> This happens while running some new code I made that uses intricate
> threading mechanisms
>
> At a high level representation, the code goes like this:
>
> EasyThread.run -> //queued execution
>     FetchDataAsync -> // get stuff from endpoint
>         New Thread -> // do stuff away from edt
>             LockObject.notify() // signal easyThread can continue
>     LockObject.wait()//pause queue until async processing is done
>
>
> I have tripple checked that all UI calls made inside these threads are
> made with callSerially
>
> The problem is so random I can't attribute it to anything in particular,
> just know that if I comment this code it goes away
>
> No worries if nothing comes to mind, but if this is something anyone has
> seen before please let me know. Perhaps using wait/notify inside an
> EasyThread isn't advisable on iOS?
>
> Thanks
>
> Javier
>

-- 
You received this message because you are subscribed to the Google Groups 
"CodenameOne Discussions" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/codenameone-discussions/CAG90yJ3SuOzn4Nd4OMbXJjD2CU_Ja%2BZf-mz6dzVHD7xbY3%3D%2B6Q%40mail.gmail.com.

Reply via email to