MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / atomic_store

Function atomic_store

system/lib/libcxx/include/__memory/shared_ptr.h:1519–1524  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1517
1518template <class _Tp>
1519_LIBCPP_HIDE_FROM_ABI void atomic_store(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r) {
1520 __sp_mut& __m = std::__get_sp_mut(__p);
1521 __m.lock();
1522 __p->swap(__r);
1523 __m.unlock();
1524}
1525
1526template <class _Tp>
1527inline _LIBCPP_HIDE_FROM_ABI void atomic_store_explicit(shared_ptr<_Tp>* __p, shared_ptr<_Tp> __r, memory_order) {

Callers 4

atomic_store_explicitFunction · 0.70
gFunction · 0.50
fFunction · 0.50
gFunction · 0.50

Calls 3

lockMethod · 0.45
swapMethod · 0.45
unlockMethod · 0.45

Tested by 3

gFunction · 0.40
fFunction · 0.40
gFunction · 0.40