Ken McDonell
2017-06-30 20:39:01 UTC
Changes committed to https://github.com/kmcdonell/pcp master
Ken McDonell (2):
libpcp: context lock (c_lock) is no longer recursive
app changes to match changed c_lock semantics
src/libpcp/src/context.c | 30 +++++++++++++++++++++++-------
src/libpcp/src/desc.c | 2 ++
src/libpcp/src/fetch.c | 7 +++++--
src/libpcp/src/instance.c | 2 ++
src/libpcp/src/lock.c | 28 +++++++++++++++++-----------
src/libpcp/src/logmeta.c | 2 ++
src/libpcp/src/logutil.c | 13 +++++++++----
src/libpcp/src/p_result.c | 6 ++++++
src/libpcp/src/pmns.c | 20 +++++++++++++-------
src/libpcp/src/store.c | 2 ++
src/libpcp/src/util.c | 6 ++++++
src/pmdumplog/pmdumplog.c | 5 +++++
src/pmlogcheck/pass3.c | 7 ++++++-
src/pmlogrewrite/pmlogrewrite.c | 8 +++++++-
14 files changed, 105 insertions(+), 33 deletions(-)
Details ...
commit 720141c2dd1a4752b9ed6348dc6f2105ee2243d6
Author: Ken McDonell <***@internode.on.net>
Date: Sat Jun 24 16:43:49 2017 +1000
app changes to match changed c_lock semantics
Apps that call the *_ctx() routines in libpcp now need to be aware
that these routines may check that the context is indeed locked, so
although these apps may be single-threaded they still need to lock
the context before diving down into libpcp.
Apps changed:
pmdumplog
pmlogcheck
pmlogrewrite
commit e5da450cf0ad149bad2d30b7c3e88da847f01f4b
Author: Ken McDonell <***@internode.on.net>
Date: Sat Jun 24 16:40:49 2017 +1000
libpcp: context lock (c_lock) is no longer recursive
Change c_lock from PTHREAD_MUTEX_RECURSIVE to
PTHREAD_MUTEX_ERRORCHECK.
Some small code tweaks to accommodate the changed semantics.
Add checks that c_lock is locked when calling the *_ctx() routines
that assume they're operating on a locked context.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:
You receive all messages sent to this group.
View/Reply Online (#16159): https://groups.io/g/pcp/message/16159
View All Messages In Topic (1): https://groups.io/g/pcp/topic/5433585
Mute This Topic: https://groups.io/mt/5433585/174549
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
***@groups.io
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub/174549
Group Home: https://groups.io/g/pcp
Contact Group Owner: pcp+***@groups.io
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354206/1187008340/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-
Ken McDonell (2):
libpcp: context lock (c_lock) is no longer recursive
app changes to match changed c_lock semantics
src/libpcp/src/context.c | 30 +++++++++++++++++++++++-------
src/libpcp/src/desc.c | 2 ++
src/libpcp/src/fetch.c | 7 +++++--
src/libpcp/src/instance.c | 2 ++
src/libpcp/src/lock.c | 28 +++++++++++++++++-----------
src/libpcp/src/logmeta.c | 2 ++
src/libpcp/src/logutil.c | 13 +++++++++----
src/libpcp/src/p_result.c | 6 ++++++
src/libpcp/src/pmns.c | 20 +++++++++++++-------
src/libpcp/src/store.c | 2 ++
src/libpcp/src/util.c | 6 ++++++
src/pmdumplog/pmdumplog.c | 5 +++++
src/pmlogcheck/pass3.c | 7 ++++++-
src/pmlogrewrite/pmlogrewrite.c | 8 +++++++-
14 files changed, 105 insertions(+), 33 deletions(-)
Details ...
commit 720141c2dd1a4752b9ed6348dc6f2105ee2243d6
Author: Ken McDonell <***@internode.on.net>
Date: Sat Jun 24 16:43:49 2017 +1000
app changes to match changed c_lock semantics
Apps that call the *_ctx() routines in libpcp now need to be aware
that these routines may check that the context is indeed locked, so
although these apps may be single-threaded they still need to lock
the context before diving down into libpcp.
Apps changed:
pmdumplog
pmlogcheck
pmlogrewrite
commit e5da450cf0ad149bad2d30b7c3e88da847f01f4b
Author: Ken McDonell <***@internode.on.net>
Date: Sat Jun 24 16:40:49 2017 +1000
libpcp: context lock (c_lock) is no longer recursive
Change c_lock from PTHREAD_MUTEX_RECURSIVE to
PTHREAD_MUTEX_ERRORCHECK.
Some small code tweaks to accommodate the changed semantics.
Add checks that c_lock is locked when calling the *_ctx() routines
that assume they're operating on a locked context.
-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links:
You receive all messages sent to this group.
View/Reply Online (#16159): https://groups.io/g/pcp/message/16159
View All Messages In Topic (1): https://groups.io/g/pcp/topic/5433585
Mute This Topic: https://groups.io/mt/5433585/174549
New Topic: https://groups.io/g/pcp/post
-=-=-
pcp mailing list
***@groups.io
https://groups.io/g/pcp/messages
-=-=-
Change Your Subscription: https://groups.io/g/pcp/editsub/174549
Group Home: https://groups.io/g/pcp
Contact Group Owner: pcp+***@groups.io
Terms of Service: https://groups.io/static/tos
Unsubscribe: https://groups.io/g/pcp/leave/354206/1187008340/xyzzy
-=-=-=-=-=-=-=-=-=-=-=-