1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 <2004> 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 | Index | 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 <2004> 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 |
<== Date ==> | <== Thread ==> |
---|
Subject: | Re: Proglem doing CA calls after catching a signal |
From: | Chris Timossi <[email protected]> |
To: | Eric Norum <[email protected]> |
Cc: | Robert Soliday <[email protected]>, tech-talk <[email protected]> |
Date: | Wed, 21 Jul 2004 09:33:44 -0700 |
Robert Soliday wrote:
Thanks, this solved my problem.
--Bob
Chris Timossi wrote:
Robert, I believe that you should replace ca_task_initialize with
> ca_context_create(ca_enable_preemptive_callback) in main. Then in the > interrupt handler, you can call ca_current_context() to get the > current context and finally join that context with > ca_attach_context().
Are you sure that this is safe? I suspect that calling these functions from a signal handler is going to introduce all sorts of race conditions.
Jeff -- can you confirm/deny my suspicions?