Skip to content

Commit

Permalink
Merge pull request #18060 from ghalliday/spanrefactor
Browse files Browse the repository at this point in the history
HPCC-30734 Refactor the CSpan tracing classes

Reviewed-By: Rodrigo Pastrana <[email protected]>
Merged-by: Gavin Halliday <[email protected]>
  • Loading branch information
ghalliday authored Nov 28, 2023
2 parents 45960f7 + 786c8ba commit f5ef1ea
Show file tree
Hide file tree
Showing 3 changed files with 400 additions and 388 deletions.
7 changes: 7 additions & 0 deletions system/jlib/jmutex.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1002,6 +1002,13 @@ template <typename X>
class Singleton
{
public:
X * query()
{
if (initialized.load(std::memory_order_acquire))
return singleton.load(std::memory_order_acquire);
return nullptr;
}

template <typename FUNC> X * query(FUNC factory)
{
if (initialized.load(std::memory_order_acquire))
Expand Down
Loading

0 comments on commit f5ef1ea

Please sign in to comment.