Discussion:
[pcp] pcp updates: move locking inside libpcp
Ken McDonell
2017-07-19 10:59:37 UTC
Permalink
Changes committed to https://github.com/kmcdonell/pcp master



Ken McDonell (1):

libpcp + apps: move conditional context locking inside libpcp





Details ...



commit a35c3b1f2c35037be6731e755be32566c25b7ff6

Author: Ken McDonell <***@internode.on.net>

Date: Wed Jul 19 20:52:21 2017 +1000



libpcp + apps: move conditional context locking inside libpcp



__pmLogFetch() and __pmLogRead_ctx() will now lock and unlock the

current context if it is not already locked ... this is only possible

now that context locks are not recursive.



This allowed us to remove the PM_LOCK()/PM_UNLOCK() operations above

the PMAPI for pmlogdump, pmlogcheck and pmlogrewrite.



All of this as per Dave's suggestion in a recent review.

Loading...