Opened 16 years ago
Closed 16 years ago
#4740 closed defect (fixed)
Why pass return value pointer to pthread_join if we don't look at it?
Reported by: | Owned by: | Isaac Richards | |
---|---|---|---|
Priority: | trivial | Milestone: | 0.21 |
Component: | mythtv | Version: | head |
Severity: | low | Keywords: | |
Cc: | Ticket locked: | no |
Description
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.
Attachments (1)
Change History (2)
Changed 16 years ago by
Attachment: | why-give-value-when-not-used-mythtv-main.patch added |
---|
Note: See
TracTickets for help on using
tickets.
Removes unneeded variable