Definition at line 705 of file Ports.cpp.
◆ DrainResult
◆ DefaultAsyncWriter()
◆ drain()
◆ notify()
| void esi::WriteChannelPort::DefaultAsyncWriter::notify |
( |
| ) |
|
|
inline |
◆ poll()
| void esi::WriteChannelPort::DefaultAsyncWriter::poll |
( |
| ) |
|
◆ stop()
| void esi::WriteChannelPort::DefaultAsyncWriter::stop |
( |
| ) |
|
|
inline |
Stop this connection: after this returns, it doesn't touch the port again.
Waits for another thread writing on it to stop.
Definition at line 712 of file Ports.cpp.
References mutex, pendingMsg, and stopped.
◆ dataAvailable
| std::atomic<bool> esi::WriteChannelPort::DefaultAsyncWriter::dataAvailable = true |
|
private |
◆ draining
| bool esi::WriteChannelPort::DefaultAsyncWriter::draining = false |
|
private |
Set by the thread holding mutex while in drain(), so callbacks don't start another one.
We need this instead of relying on a normal mutex because a normal mutex when 'try_to_lock' is called by the same thread the behavior is undefined.
Definition at line 757 of file Ports.cpp.
Referenced by poll().
◆ fetch
◆ mutex
| std::recursive_mutex esi::WriteChannelPort::DefaultAsyncWriter::mutex |
|
private |
◆ onError
◆ pendingMsg
◆ port
◆ stopped
| std::atomic<bool> esi::WriteChannelPort::DefaultAsyncWriter::stopped = false |
|
private |
Set when the port is disconnected (or reconnected) or destroyed.
After that, this connection doesn't touch the port.
Definition at line 760 of file Ports.cpp.
Referenced by drain(), and stop().
The documentation for this struct was generated from the following file:
- /home/runner/work/circt-www/circt-www/circt_src/lib/Dialect/ESI/runtime/cpp/lib/Ports.cpp