From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3946 invoked by alias); 26 Apr 2007 04:20:09 -0000 Received: (qmail 3936 invoked by uid 22791); 26 Apr 2007 04:20:08 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.lvl7.com (HELO lvl7-trend01.lvl7.com) (66.192.95.83) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 26 Apr 2007 05:20:05 +0100 Received: from lvl7in-mail01.lvl7.com ([10.240.1.18]) by lvl7-trend01.lvl7.com with InterScan VirusWall; Thu, 26 Apr 2007 00:20:03 -0400 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Thu, 26 Apr 2007 04:20:00 -0000 Message-ID: From: "Venkateswara Rao L." To: X-IsSubscribed: yes Mailing-List: contact ecos-discuss-help@ecos.sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: ecos-discuss-owner@ecos.sourceware.org Subject: [ECOS] Using a Mix of Posix and native calls. X-SW-Source: 2007-04/txt/msg00140.txt.bz2 Hi, I've just started working on ecos. I've a basic query. =20 Suppose, we use ecos native call(cyg_thread_create) to create a task(TASK A). We have another timer task that implements the software timers.=20 We have a func. timerAdd(), that sets the timeout call. It uses pthread_cleanup_push with actual "internal timer add function" as argument, followed by pthread_cleanup_pop(1) to execute the registered handler. The function timerAdd() is called in the context of TASK A. We are getting exception while executing pthread push and pop instructions. It looks to me that this exception might be happening because the task which makes a call to the above mentioned posix calls, was not created using posix pthread routines.=20=20=20 =20 Is my understanding correct? Can we have a mix of posix and native calls under some conditions? =20 =20 Warm Regards Venkateswara Rao. --=20 Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss