diff options
author | Adam <Adam@anope.org> | 2011-01-07 15:57:13 -0500 |
---|---|---|
committer | Adam <Adam@anope.org> | 2011-01-07 15:57:13 -0500 |
commit | 44038491264a350a8849e1d7e8547bbdec134d74 (patch) | |
tree | 08b3b18d0ff4a4d814e638a882916c07882e16de /include/threadengine.h | |
parent | 9efebe5461fd5985190380d11fd8c3c7a5fba9d6 (diff) |
Added db_mysql_live which allows Anope to pull data
from the four main SQL tables in realtime, which
effectively gives us "live" SQL.
Changed eventfd pipe engine to not use buffered write.
Added TryLock to threading engines.
Made blocking SQL queries in our SQL API thread-safe.
Diffstat (limited to 'include/threadengine.h')
-rw-r--r-- | include/threadengine.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/threadengine.h b/include/threadengine.h index 8df288cae..822774c6e 100644 --- a/include/threadengine.h +++ b/include/threadengine.h @@ -99,6 +99,12 @@ class CoreExport Mutex /** Unlock the mutex, it must be locked first */ void Unlock(); + + /** Attempt to lock the mutex, will return true on success and false on fail + * Does not block + * @return true or false + */ + bool TryLock(); }; class CoreExport Condition : public Mutex |