Skip to content

Commit

Permalink
Change Hazptr internal set type to folly container
Browse files Browse the repository at this point in the history
Summary: `F14FastSet` strictly superior.

Reviewed By: ot

Differential Revision: D42533179

fbshipit-source-id: 624bc544de5e1c82a4ca983e21599c1411c7f54d
  • Loading branch information
IosifSpulber authored and facebook-github-bot committed May 19, 2023
1 parent 0ce77fd commit 3b61ea1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folly/synchronization/HazptrDomain.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@
#pragma once

#include <atomic>
#include <unordered_set>

#include <folly/Memory.h>
#include <folly/Portability.h>
#include <folly/container/F14Set.h>
#include <folly/executors/QueuedImmediateExecutor.h>
#include <folly/synchronization/AsymmetricThreadFence.h>
#include <folly/synchronization/Hazptr-fwd.h>
Expand Down Expand Up @@ -99,7 +99,7 @@ class hazptr_domain {
using List = hazptr_detail::linked_list<Obj>;
using ObjList = hazptr_obj_list<Atom>;
using RetiredList = hazptr_detail::shared_head_only_list<Obj, Atom>;
using Set = std::unordered_set<const void*>;
using Set = folly::F14FastSet<const void*>;
using ExecFn = folly::Executor* (*)();

static constexpr int kThreshold = detail::hazptr_domain_rcount_threshold();
Expand Down

0 comments on commit 3b61ea1

Please sign in to comment.