From 9f142dc9ed99b0c16cb1cd1bd3d5da8eed8b7898 Mon Sep 17 00:00:00 2001 From: Jeff Hill Date: Tue, 29 Aug 2000 22:50:10 +0000 Subject: [PATCH] enable CA preemption of main thread --- src/db/dbCa.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/db/dbCa.c b/src/db/dbCa.c index b8164a119..fdd9fd066 100644 --- a/src/db/dbCa.c +++ b/src/db/dbCa.c @@ -603,11 +603,12 @@ done: void dbCaTask() { + static const int enablePreemption = 1u; caLink *pca; short link_action; int status; - SEVCHK(ca_task_initialize(),"dbCaTask calling ca_task_initialize"); + SEVCHK(ca_context_create(enablePreemption),"dbCaTask calling ca_task_initialize"); SEVCHK(ca_add_exception_event(exceptionCallback,NULL), "ca_add_exception_event"); /*Dont do anything until iocInit initializes database*/