From d67e8a28c6bf81fa82c7980391f6fb899f66a15b Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Mon, 15 Oct 2001 21:20:58 +0000 Subject: [PATCH] stated that multiple threads are not allowed if preemptive callback is disabled --- src/ca/CAref.html | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/src/ca/CAref.html b/src/ca/CAref.html index 558b81f35..95957f585 100644 --- a/src/ca/CAref.html +++ b/src/ca/CAref.html @@ -709,7 +709,7 @@ channel access calls.

callbacks might be called when the thread that calls this routine is not executing in the CA client library. Programmers who are unfamiliar with mutual exclusion locking in a multi-threaded environment should - specify ca_disable_preemptive_callback.

+ specify ca_disable_preemptive_callback.

@@ -797,6 +797,11 @@ are made by the application can't be guaranteed, and application programs may need to be prepared for a connected channel to enter a disconnected state at any time.

+

If ca_disable_preemptive_callback is specified then +additional threads are not allowed to join the CA context using +ca_context_attach() because allowing other threads to join implies that CA +callbacks will be called preemptively from more than one thread.

+

Arguments

PROCESS_VARIABLE_NAME
@@ -2242,7 +2247,12 @@ returned.

Description

-

Become a member of the specified CA context.

+

Become a member of the specified CA context. If +ca_disable_preemptive_callback is specified when ca_context_create() +is called ( or if ca_task_initialize() is called ) then additional threads +are not allowed to join the CA context because allowing other +threads to join implies that CA callbacks will be called preemptively from +more than one thread.

Arguments