MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / NewCursor

Method NewCursor

rtpose_wrapper/src/caffe/util/db_lmdb.cpp:39–46  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

37}
38
39LMDBCursor* LMDB::NewCursor() {
40 MDB_txn* mdb_txn;
41 MDB_cursor* mdb_cursor;
42 MDB_CHECK(mdb_txn_begin(mdb_env_, NULL, MDB_RDONLY, &mdb_txn));
43 MDB_CHECK(mdb_dbi_open(mdb_txn, NULL, 0, &mdb_dbi_));
44 MDB_CHECK(mdb_cursor_open(mdb_txn, mdb_dbi_, &mdb_cursor));
45 return new LMDBCursor(mdb_txn, mdb_cursor);
46}
47
48LMDBTransaction* LMDB::NewTransaction() {
49 return new LMDBTransaction(mdb_env_);

Callers 3

mainFunction · 0.45
InternalThreadEntryMethod · 0.45
TYPED_TESTFunction · 0.45

Calls 1

MDB_CHECKFunction · 0.85

Tested by 1

TYPED_TESTFunction · 0.36