From e435dc3dd2b4a2ee9ec2b05a8bcabc685d358bce Mon Sep 17 00:00:00 2001 From: "Jonathan M. Henson" Date: Mon, 6 Nov 2023 11:49:19 -0800 Subject: [PATCH] Update include/aws/common/cross_process_lock.h update documentation. Co-authored-by: Michael Graeb --- include/aws/common/cross_process_lock.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/include/aws/common/cross_process_lock.h b/include/aws/common/cross_process_lock.h index 20d1a7f98..99ecc5cb6 100644 --- a/include/aws/common/cross_process_lock.h +++ b/include/aws/common/cross_process_lock.h @@ -13,7 +13,8 @@ AWS_EXTERN_C_BEGIN /** * Attempts to acquire a system-wide (not per process or per user) lock scoped by instance_nonce. * For any given unique nonce, a lock will be returned by the first caller. Subsequent calls will - * return NULL until the either the process owning the lock exits or the program owning the lock + * return NULL and raise AWS_ERROR_MUTEX_CALLER_NOT_OWNER + * until the either the process owning the lock exits or the program owning the lock * calls aws_cross_process_lock_release() explicitly. * * If the process exits before the lock is released, the kernel will unlock it for the next consumer.