diff options
author | Luca Muscariello <lumuscar+fdio@cisco.com> | 2019-01-24 16:32:25 +0000 |
---|---|---|
committer | Gerrit Code Review <gerrit@fd.io> | 2019-01-24 16:32:25 +0000 |
commit | 9fc2b9ec49c54ec2d5f0164bbedc1c78732c464c (patch) | |
tree | c7ebcf4c83b5c2f71318bc69c6f6915aaac7ae2a /libparc/parc/concurrent/parc_Lock.c | |
parent | cada1143501a48effc483e3873596c22849926b5 (diff) | |
parent | 097e69e6daeefc84fd271babbdc1b47dfe4c01e5 (diff) |
Merge "Add support for ubuntu18.04 packages."
Diffstat (limited to 'libparc/parc/concurrent/parc_Lock.c')
-rwxr-xr-x | libparc/parc/concurrent/parc_Lock.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libparc/parc/concurrent/parc_Lock.c b/libparc/parc/concurrent/parc_Lock.c index d510b5ed..493fd44f 100755 --- a/libparc/parc/concurrent/parc_Lock.c +++ b/libparc/parc/concurrent/parc_Lock.c @@ -37,7 +37,7 @@ struct PARCLock { static void _parcLock_Finalize(PARCLock **instancePtr) { - assertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCLock pointer."); + parcAssertNotNull(instancePtr, "Parameter must be a non-null pointer to a PARCLock pointer."); parcLock_OptionalAssertValid(*instancePtr); @@ -53,7 +53,7 @@ parcObject_ExtendPARCObject(PARCLock, _parcLock_Finalize, NULL, parcLock_ToStrin void parcLock_AssertValid(const PARCLock *instance) { - assertTrue(parcLock_IsValid(instance), + parcAssertTrue(parcLock_IsValid(instance), "PARCLock is not valid."); } @@ -179,7 +179,7 @@ parcLock_Wait(PARCLock *lock) { parcLock_OptionalAssertValid(lock); - trapUnexpectedStateIf(lock->locked == false, + parcTrapUnexpectedStateIf(lock->locked == false, "You must Lock the object before calling parcLock_Wait"); lock->notified = false; @@ -193,7 +193,7 @@ parcLock_Notify(PARCLock *lock) { parcLock_OptionalAssertValid(lock); - trapUnexpectedStateIf(lock->locked == false, + parcTrapUnexpectedStateIf(lock->locked == false, "You must Lock the object before calling parcLock_Notify"); lock->notified = true; |