diff options
| author | Rusty Wagner <dontpanic@binaryninja.com> | 2015-03-19 03:05:26 -0400 |
|---|---|---|
| committer | Rusty Wagner <dontpanic@binaryninja.com> | 2015-03-19 03:05:26 -0400 |
| commit | 97cbee81fcda2a812cc655cc6b8cf1e2bead67b9 (patch) | |
| tree | f920aac8d39086c39d52db3853f13182179a53b1 /binaryninjaapi.h | |
| parent | c4508b572c4e6b17bae49953bb6a6cceac043a95 (diff) | |
Improve performance by avoiding heavy lock contention
Diffstat (limited to 'binaryninjaapi.h')
| -rw-r--r-- | binaryninjaapi.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/binaryninjaapi.h b/binaryninjaapi.h index c986ac77..ed2d2cec 100644 --- a/binaryninjaapi.h +++ b/binaryninjaapi.h @@ -128,15 +128,18 @@ namespace BinaryNinja { static void LogMessageCallback(void* ctxt, BNLogLevel level, const char* msg); static void CloseLogCallback(void* ctxt); + static BNLogLevel GetLogLevelCallback(void* ctxt); public: virtual ~LogListener() {} static void RegisterLogListener(LogListener* listener); static void UnregisterLogListener(LogListener* listener); + static void UpdateLogListeners(); virtual void LogMessage(BNLogLevel level, const std::string& msg) = 0; virtual void CloseLog() {} + virtual BNLogLevel GetLogLevel() { return WarningLog; } }; void Log(BNLogLevel level, const char* fmt, ...); |
