webui
                                
                                 webui copied to clipboard
                                
                                    webui copied to clipboard
                            
                            
                            
                        Thread is always fully running.
I've noticed that recent webui operations are taking up a lot of CPU resource on Windows.
Even a very simple examples/C/minimal project shows high CPU resource consumption.
Maybe the mutex inside the thread is behaving weirdly, is it ok on other OS?
I found following code is fully running without any hangs.
https://github.com/webui-dev/webui/blob/cf0c54e2bdb5e3308124bff3b7fedfd0457bdd2a/src/webui.c#L8514-L8526
This loop just keeps spinning without doing anything.
Is this normal behavior?
I haven't analyzed it in detail, but is it possible that _webui_mutex_is_exit_now & _webui_mutex_is_connected functions aren't working properly? Or need some other mutex/semaphore for wait?