]> git.saurik.com Git - wxWidgets.git/blobdiff - interface/wx/thread.h
Implement hatched/stippled pens/brushes in wxGraphicsContext for Cairo.
[wxWidgets.git] / interface / wx / thread.h
index adfe7740916d08bfdfd19436d6e6c5c0ef3d7487..56d79333ccbb9f023fe80e480f32e9dba9c4b91c 100644 (file)
@@ -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.