record an event on cn
| 318 | |
| 319 | //! record an event on cn |
| 320 | uint64_t record(CompNode cn, bool doitnow = false) { |
| 321 | std::unique_lock lock(m_mtx); |
| 322 | auto cnid = get_cnid_unsafe(cn); |
| 323 | if (doitnow) { |
| 324 | return do_record(cn, cnid, lock)->first; |
| 325 | } |
| 326 | //! if we do not DOITNOW, we only increase the counter, and then the get_event() |
| 327 | //! function will do the actual recording |
| 328 | return m_cndata[cnid].next++; |
| 329 | } |
| 330 | |
| 331 | //! try to async release a resource until `cn` complete event `t` |
| 332 | void async_release(CompNode cn, uint64_t t, BlobPtr blob) { |
no outgoing calls
no test coverage detected