diff options
Diffstat (limited to 'gdb/dwarf2/cooked-index-worker.h')
-rw-r--r-- | gdb/dwarf2/cooked-index-worker.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/dwarf2/cooked-index-worker.h b/gdb/dwarf2/cooked-index-worker.h index 433515b..dfdc82f 100644 --- a/gdb/dwarf2/cooked-index-worker.h +++ b/gdb/dwarf2/cooked-index-worker.h @@ -296,8 +296,16 @@ protected: /* The per-objfile object. */ dwarf2_per_objfile *m_per_objfile; + /* Result of each worker task. */ std::vector<cooked_index_worker_result> m_results; + +#if CXX_STD_THREAD + /* Mutex to synchronize access to M_RESULTS when workers append their + result. */ + std::mutex m_results_mutex; +#endif /* CXX_STD_THREAD */ + /* Any warnings emitted. For the time being at least, this only needed in do_reading, not in every worker. Note that deferred_warnings uses gdb_stderr in its constructor, and this |