[mythtv-commits] Ticket #4740: Why pass return value pointer to pthread_join if we don't look at it?
MythTV
mythtv at cvs.mythtv.org
Fri Feb 22 17:57:38 UTC 2008
#4740: Why pass return value pointer to pthread_join if we don't look at it?
---------------------------------------------+------------------------------
Reporter: Erik Hovland <erik at hovland.org> | Owner: ijr
Type: defect | Status: new
Priority: trivial | Milestone: 0.21
Component: mythtv | Version: head
Severity: low | Mlocked: 0
---------------------------------------------+------------------------------
pthread_join can give the caller the return value of the function that was
run by the thread the caller is trying to join to. This is done by passing
a void double pointer.
main() in programs/mythtv does this. But doesn't do anything with the
pointer.
Since it doesn't do anything with it, there really isn't a point in
allocating the variable on the stack and passing it.
--
Ticket URL: <http://svn.mythtv.org/trac/ticket/4740>
MythTV <http://svn.mythtv.org/trac>
MythTV
More information about the mythtv-commits
mailing list