Open jwillemsen opened 7 months ago
In TAO::Object there is an is_evaluated/object_initlock members which are using a boolean flag, maybe we can use a std::atomic_flag as alternative, would save a mutex lock/unlock in our critical path
Or maybe use std::call_once
Did some work on a new branch, see https://github.com/jwillemsen/ATCD/tree/jwi-stdoncecall. It looks the is_evaluated flag is also used for lazy evaluation and in some more places
In TAO::Object there is an is_evaluated/object_initlock members which are using a boolean flag, maybe we can use a std::atomic_flag as alternative, would save a mutex lock/unlock in our critical path