DOCGroup / ACE_TAO

ACE and TAO
https://www.dre.vanderbilt.edu/~schmidt/TAO.html
698 stars 374 forks source link

Look at replace TAO::Object is_evaluated_/object_init_lock_ members with a std::atomic_flag #2188

Open jwillemsen opened 7 months ago

jwillemsen commented 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

jwillemsen commented 2 months ago

Or maybe use std::call_once

jwillemsen commented 2 months ago

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