Home
last modified time | relevance | path

Searched refs:ScopedResource (Results 1 – 11 of 11) sorted by relevance

/external/perfetto/include/perfetto/ext/base/
Dscoped_file.h54 class PERFETTO_EXPORT ScopedResource {
59 explicit ScopedResource(T t = InvalidValue) : t_(t) {} in t_()
60 ScopedResource(ScopedResource&& other) noexcept { in ScopedResource() function
64 ScopedResource& operator=(ScopedResource&& other) {
85 ~ScopedResource() { reset(InvalidValue); } in ~ScopedResource()
88 ScopedResource(const ScopedResource&) = delete;
89 ScopedResource& operator=(const ScopedResource&) = delete;
97 using ScopedFile = ScopedResource<int, CloseFile, -1>;
98 using ScopedFstream = ScopedResource<FILE*, fclose, nullptr>;
103 using ScopedPlatformHandle = ScopedResource<PlatformHandle,
[all …]
Dunix_socket.h52 ScopedResource<SocketHandle, CloseSocket, static_cast<SocketHandle>(-1)>;
/external/chromium-trace/catapult/systrace/atrace_helper/jni/
Dfile_utils.h22 struct ScopedResource { struct
23 explicit ScopedResource(RESOURCE_TYPE r) : r_(r) { CHECK(r); } in ScopedResource() argument
24 ~ScopedResource() { CLOSE_FN(r_); } in ~ScopedResource() argument
28 using ScopedFD = ScopedResource<int, close>; argument
29 using ScopedDir = ScopedResource<DIR*, closedir>;
/external/perfetto/src/trace_processor/sqlite/
Dscoped_db.h34 using ScopedDb = base::ScopedResource<sqlite3*, sqlite3_close, nullptr>;
35 using ScopedStmt = base::ScopedResource<sqlite3_stmt*,
Dquery_constraints.h58 using SqliteString = base::ScopedResource<char*, FreeSqliteString, nullptr>;
/external/perfetto/src/perfetto_cmd/
Dpacket_writer_unittest.cc96 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
124 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
157 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
170 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
186 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
239 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
276 base::ScopedResource<FILE*, fclose, nullptr> f( in TEST()
/external/perfetto/src/profiling/symbolizer/
Dfilesystem_posix.cc40 base::ScopedResource<FTS*, fts_close, nullptr> fts( in WalkDirectories()
/external/perfetto/src/trace_processor/
Diterator_impl.h122 base::ScopedResource<TraceProcessorImpl*, &DummyClose, nullptr>;
/external/perfetto/src/base/
Dwatchdog_unittest.cc131 base::ScopedResource<const struct sigaction*, RestoreSIGABRT, nullptr> in TEST()
Dunix_socket_unittest.cc853 base::ScopedResource<const struct sigaction*, RollbackSigaction, nullptr> in TEST_F()
/external/perfetto/src/profiling/memory/
Dclient.cc87 base::ScopedResource<pthread_attr_t*, pthread_attr_destroy, nullptr> cleanup( in GetThreadStackRange()
180 base::ScopedResource<int, UnsetDumpable, kNop, false> unset_dumpable(kNop); in CreateAndHandshake()