Joinable threads

Bug #1699229 reported by mdavidsaver on 2017-06-20
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
EPICS Base
Wishlist
mdavidsaver

Bug Description

It would be nice if the OSI interface for threads supported joining at the C API level (c++ already has epicsThread::exitWait() ). No real functional benefit, but would be helpful for testing with valgrind where currently thread stacks show up as leaked for threads which haven't completely stopped.

I'm assigning this to myself even though I don't have any immediate plans to add this feature.

Andrew Johnson (anj) wrote :

VxWorks doesn't have anything like a taskJoin() routine, so implementing this there would require pulling functionality from epicsThread::exitWait() and epicsThreadCallEntryPoint() down into the os/vxWorks/osdThread.c implementation.

mdavidsaver (mdavidsaver) wrote :

lp:1730982 is related.

mdavidsaver (mdavidsaver) wrote :

FYI. I have done some work on this idea. Enough to have it working for posix and WIN32. I think I know to do this for RTEMS as well, and by extension vxworks. Though I still don't have a firm timetable for doing this.

https://github.com/mdavidsaver/epics-base/tree/thread-join

To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers