Mercurial > octave
comparison liboctave/util/oct-mutex.h @ 31529:918e09edc6ed stable
Export typeinfo of base_mutex and autolock classes.
* liboctave/util/oct-mutex.h (base_mutex, autolock): Add API attribute to class
definitions.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Thu, 24 Nov 2022 14:11:47 +0100 |
parents | 796f54d4ddbf |
children | e88a07dec498 |
comparison
equal
deleted
inserted
replaced
31528:d81b39f1dec1 | 31529:918e09edc6ed |
---|---|
33 namespace octave | 33 namespace octave |
34 { | 34 { |
35 class mutex; | 35 class mutex; |
36 | 36 |
37 class | 37 class |
38 OCTAVE_API | |
38 base_mutex | 39 base_mutex |
39 { | 40 { |
40 public: | 41 public: |
41 friend class mutex; | 42 friend class mutex; |
42 | 43 |
82 protected: | 83 protected: |
83 std::shared_ptr<base_mutex> m_rep; | 84 std::shared_ptr<base_mutex> m_rep; |
84 }; | 85 }; |
85 | 86 |
86 class | 87 class |
88 OCTAVE_API | |
87 autolock | 89 autolock |
88 { | 90 { |
89 public: | 91 public: |
90 autolock (const mutex& m, bool block = true) | 92 autolock (const mutex& m, bool block = true) |
91 : m_mutex (m), m_lock_result (false) | 93 : m_mutex (m), m_lock_result (false) |