From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26044 invoked by alias); 27 Aug 2009 10:49:38 -0000 Received: (qmail 26035 invoked by uid 22791); 27 Aug 2009 10:49:37 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SARE_MSGID_LONG40,SPF_PASS X-Spam-Check-By: sourceware.org Received: from mail-px0-f179.google.com (HELO mail-px0-f179.google.com) (209.85.216.179) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 27 Aug 2009 10:49:28 +0000 Received: by pxi9 with SMTP id 9so1028463pxi.14 for ; Thu, 27 Aug 2009 03:49:26 -0700 (PDT) MIME-Version: 1.0 Received: by 10.142.74.19 with SMTP id w19mr694793wfa.196.1251370166538; Thu, 27 Aug 2009 03:49:26 -0700 (PDT) In-Reply-To: <4A951A47.2020402@intefo.ch> References: <4A951A47.2020402@intefo.ch> Date: Thu, 27 Aug 2009 10:49:00 -0000 Message-ID: From: Mandeep Sandhu To: Simon Kallweit Cc: ecos-discuss Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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: Re: [ECOS] ecos + lwip X-SW-Source: 2009-08/txt/msg00082.txt.bz2 > Threads that use lwip APIs (netcomm and sockets) *must* be created with > =A0sys_new_thread(). Otherwise lwip's timeout mechanism will not work as > expected. Thanks for this info Simon. I'm stuck at how to pass an app supplied arg to my threads start function t= hat's created using sys_thread_new(). I want to pass an arg to my threads start function. I think the 2nd arg to sys_thread_new() seems to be user supplied arg, but from the usage I've seen that apps usually pass the thread's name to it in the 2nd arg. Internally, sys_thread_new uses this 2nd arg for both the name as well as t= he arg to the start function while calling cyg_thread_create(). So is there no= way I can pass an arg to it (apart from the name)? Thanks, -mandeep > > Simon > -- Before posting, please read the FAQ: http://ecos.sourceware.org/fom/ecos and search the list archive: http://ecos.sourceware.org/ml/ecos-discuss