Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/apache/arrow
/ Insert
Method
Insert
cpp/src/arrow/util/concurrent_map.h:31–34 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
29
class ConcurrentMap {
30
public:
31
void Insert(const K& key, const V& value) {
32
auto lock = mutex_.Lock();
33
map_.insert({key, value});
34
}
35
36
template <typename ValueFunc>
37
V GetOrInsert(const K& key, ValueFunc&& compute_value_func) {
Callers
nothing calls this directly
Calls
2
Lock
Method · 0.45
insert
Method · 0.45
Tested by
no test coverage detected