diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-11-28 18:49:39 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-11-29 23:31:41 +0100 |
| commit | 4b3900797e0a484df2cb8c8a71f71a5ccaca6409 (patch) | |
| tree | 11d96c96f77dff4b44cf029245ae4ff8f0b6588d /src/lib/grok_j2k_encoder_thread.h | |
| parent | aed3ce82ce885b81f76f818afdab44d39f0634e1 (diff) | |
Count errors in Grok threads.
Diffstat (limited to 'src/lib/grok_j2k_encoder_thread.h')
| -rw-r--r-- | src/lib/grok_j2k_encoder_thread.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/grok_j2k_encoder_thread.h b/src/lib/grok_j2k_encoder_thread.h index 5301e1670..b9375f23a 100644 --- a/src/lib/grok_j2k_encoder_thread.h +++ b/src/lib/grok_j2k_encoder_thread.h @@ -35,7 +35,12 @@ public: void run() override; + int errors() const { + return _errors.load(); + } + private: grk_plugin::GrokContext* _context; + std::atomic<int> _errors; }; |
