pub fn current_thread_id() -> u64Expand description
The calling thread’s EPICS ID — C epicsThreadGetIdSelf
(osdThread.c:936-945).
A thread that never ran the prologue is given a row here, as C’s own
createImplicit does at :942, so this cannot answer “no id”: a thread
that can be asked for its handle is a thread the listing can show and
epicsThreadResume can name.
This is the id a subsystem stores when C stores an epicsThreadId of its
own — dbBkpt.c’s pnode->taskid, printed by dbstat as T: — so the
handle in that column and the EPICS ID column of epicsThreadShowAll are
one value rather than two namings of one thread.