MCPcopy Create free account
hub / github.com/WasmEdge/WasmEdge / create

Method create

lib/host/wasi/inode-linux.cpp:1470–1479  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1468
1469#if __GLIBC_PREREQ(2, 8)
1470WasiExpect<void> Poller::Timer::create() noexcept {
1471 if (const auto NewFd =
1472 ::timerfd_create(toClockId(Clock), TFD_NONBLOCK | TFD_CLOEXEC);
1473 unlikely(NewFd < 0)) {
1474 return WasiUnexpect(fromErrNo(errno));
1475 } else {
1476 FdHolder::emplace(NewFd);
1477 }
1478 return {};
1479}
1480
1481WasiExpect<void> Poller::Timer::setTime(__wasi_timestamp_t Timeout,
1482 __wasi_timestamp_t,

Callers 1

acquireTimerMethod · 0.45

Calls 6

unlikelyFunction · 0.85
WasiUnexpectFunction · 0.85
emplaceClass · 0.85
toClockIdFunction · 0.70
fromErrNoFunction · 0.70
emplaceMethod · 0.45

Tested by

no test coverage detected