From 4f8676a3d7537badc1ac0a3cfcff6b6cfc002ec2 Mon Sep 17 00:00:00 2001 From: Andrew Johnson Date: Tue, 22 Jul 2008 20:37:30 +0000 Subject: [PATCH] Added CSS style for function headers. Fixed Mantix #127. --- src/ca/CAref.html | 19 ++++++++++++++++--- 1 file changed, 16 insertions(+), 3 deletions(-) diff --git a/src/ca/CAref.html b/src/ca/CAref.html index 0db2fbd45..5145585b6 100644 --- a/src/ca/CAref.html +++ b/src/ca/CAref.html @@ -4,6 +4,13 @@ EPICS R3.14 Channel Access Reference Manual + @@ -2355,9 +2362,15 @@ void ca_context_destroy();

Shut down the calling thread's channel access client context and free any resources allocated. Detach the calling thread from any CA client context.

-

Be advised that any user created threads that might have attached -themselves to the CA context must of course stop using it prior to its being -destroyed.

+

Any user-created threads that have attached themselves to the CA context +must stop using it prior to its being destroyed. A program running in an IOC +context must delete all of its channels prior to calling ca_context_destroy() +to avoid a crash.

+ +

A CA client application that calls epicsExit() must install an +EPICS exit handler that calls ca_context_destroy() only after first +calling ca_create_context(). This will guarantee that the EPICS exit handlers +get called in the correct order.

On many OS that execute programs in a process based environment the resources used by the client library such as sockets and allocated memory are