From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27756 invoked by alias); 24 Jun 2014 15:05:08 -0000 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 Received: (qmail 27734 invoked by uid 89); 24 Jun 2014 15:05:05 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=4.2 required=5.0 tests=AWL,BAYES_50,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 X-HELO: gateway07.websitewelcome.com Received: from gateway07.websitewelcome.com (HELO gateway07.websitewelcome.com) (69.56.184.21) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with (AES256-SHA encrypted) ESMTPS; Tue, 24 Jun 2014 15:04:32 +0000 Received: by gateway07.websitewelcome.com (Postfix, from userid 5007) id 2173BC08A33D5; Tue, 24 Jun 2014 10:03:02 -0500 (CDT) Received: from ham07.websitewelcome.com (ham07.websitewelcome.com [192.185.0.198]) by gateway07.websitewelcome.com (Postfix) with ESMTP id 2C939C089973F for ; Tue, 24 Jun 2014 10:02:22 -0500 (CDT) Received: by ham07.websitewelcome.com (Postfix, from userid 500) id 656C26600FF; Tue, 24 Jun 2014 10:02:01 -0500 (CDT) X-Spam-Flag2999: NO X-Spam-Level2999: X-Spam-Status2999: "No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU autolearn=ham version=3.3.1 Received: from audi.websitewelcome.com (audi.websitewelcome.com [192.185.82.126]) by ham07.websitewelcome.com (Postfix) with ESMTP id 1FFEA660220 for ; Tue, 24 Jun 2014 10:02:01 -0500 (CDT) Received: from [218.214.122.139] (port=64780 helo=xlat) by audi.websitewelcome.com with esmtpa (Exim 4.82) (envelope-from ) id 1WzSES-0007nk-81 for ecos-discuss@ecos.sourceware.org; Tue, 24 Jun 2014 10:02:00 -0500 From: "Andrew Hannam" To: "'eCos Discussion'" References: In-Reply-To: Date: Tue, 24 Jun 2014 15:05:00 -0000 Message-ID: <002601cf8fbd$3ff8bad0$bfea3070$@inmarket.com.au> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BWhitelist: no X-Exim-ID: 1WzSES-0007nk-81 X-Source-Sender: (xlat) [218.214.122.139]:64780 X-Source-Auth: andrewh@inmarket.com.au X-Email-Count: 1 X-Source-Cap: aW5zeXM7aXRhbGxiaXo7YXVkaS53ZWJzaXRld2VsY29tZS5jb20= Subject: [ECOS] Couple of porting questions X-SW-Source: 2014-06/txt/msg00021.txt.bz2 I am currently porting the uGFX LCD graphics library to eCos and have a few questions. 1/ Is there any method of detecting from a thread handle whether the thread that handle refers to is still runnable ie. hasn't exited or been killed? 2/ Is there any way of detecting if cyg_scheduler_start() has already been called or, is it safe to call it multiple times with no side effects or, can it be assumed that cyg_scheduler_start() has already been called when main() is invoked (if the kernel is included)? 3/ Is there any approved method of halting the system (eg due to an unrecoverable soft error) or is calling the C library exit() or _exit() sufficient? 4/ Can stdout output be relied upon on all platforms? Is stdout and/or stderr assumed to be a debug/monitor output stream? Thanks, Andrew. -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss