X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/4c51a665c649f7579fb39e62070cef4f66b3210d..ab7f0034828cfc121014b3e1e29bba583fb6d832:/interface/wx/thread.h diff --git a/interface/wx/thread.h b/interface/wx/thread.h index adfe774091..56d79333cc 100644 --- a/interface/wx/thread.h +++ b/interface/wx/thread.h @@ -584,6 +584,14 @@ public: */ void Enter(); + /** + Try to enter the critical section (same as trying to lock a mutex). + If it can't, immediately returns false. + + @since 2.9.3 + */ + bool TryEnter(); + /** Leave the critical section allowing other threads use the global data protected by it. There is no error return for this function.