Searched refs:ScopedResource (Results 1 – 11 of 11) sorted by relevance
/external/perfetto/include/perfetto/ext/base/ |
D | scoped_file.h | 54 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 …]
|
D | unix_socket.h | 52 ScopedResource<SocketHandle, CloseSocket, static_cast<SocketHandle>(-1)>;
|
/external/chromium-trace/catapult/systrace/atrace_helper/jni/ |
D | file_utils.h | 22 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/ |
D | scoped_db.h | 34 using ScopedDb = base::ScopedResource<sqlite3*, sqlite3_close, nullptr>; 35 using ScopedStmt = base::ScopedResource<sqlite3_stmt*,
|
D | query_constraints.h | 58 using SqliteString = base::ScopedResource<char*, FreeSqliteString, nullptr>;
|
/external/perfetto/src/perfetto_cmd/ |
D | packet_writer_unittest.cc | 96 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/ |
D | filesystem_posix.cc | 40 base::ScopedResource<FTS*, fts_close, nullptr> fts( in WalkDirectories()
|
/external/perfetto/src/trace_processor/ |
D | iterator_impl.h | 122 base::ScopedResource<TraceProcessorImpl*, &DummyClose, nullptr>;
|
/external/perfetto/src/base/ |
D | watchdog_unittest.cc | 131 base::ScopedResource<const struct sigaction*, RestoreSIGABRT, nullptr> in TEST()
|
D | unix_socket_unittest.cc | 853 base::ScopedResource<const struct sigaction*, RollbackSigaction, nullptr> in TEST_F()
|
/external/perfetto/src/profiling/memory/ |
D | client.cc | 87 base::ScopedResource<pthread_attr_t*, pthread_attr_destroy, nullptr> cleanup( in GetThreadStackRange() 180 base::ScopedResource<int, UnsetDumpable, kNop, false> unset_dumpable(kNop); in CreateAndHandshake()
|