MCPcopy Create free account
hub / github.com/PCSX2/pcsx2 / GetKeys

Method GetKeys

pcsx2/DEV9/ThreadSafeMap.h:52–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50 }
51
52 std::vector<Key> GetKeys()
53 {
54#ifdef NO_SHARED_MUTEX
55 std::unique_lock readLock(accessMutex);
56#else
57 std::shared_lock readLock(accessMutex);
58#endif
59
60 std::vector<Key> keys;
61 keys.reserve(map.size());
62
63 for (auto iter = map.begin(); iter != map.end(); ++iter)
64 keys.push_back(iter->first);
65
66 return keys;
67 }
68
69 //Does not error or insert if no key is found
70 bool TryGetValue(Key key, T* value)

Callers 3

recvMethod · 0.80
resetMethod · 0.80
~SocketAdapterMethod · 0.80

Calls 5

reserveMethod · 0.45
sizeMethod · 0.45
beginMethod · 0.45
endMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected