From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9614 invoked by alias); 1 Sep 2009 15:49:56 -0000 Received: (qmail 9606 invoked by uid 22791); 1 Sep 2009 15:49:55 -0000 X-SWARE-Spam-Status: No, hits=-2.3 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail05.solnet.ch (HELO mail05.solnet.ch) (212.101.4.139) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Sep 2009 15:49:50 +0000 Received: from mail05.solnet.ch ([127.0.0.1]) by localhost (mail05.solnet.ch [127.0.0.1]) (SolNet-Check, port 10024) with LMTP id azcwvOgqGUBt; Tue, 1 Sep 2009 15:49:47 +0000 (UTC) Received: from beta.intefo.ch (static-212-101-18-64.adsl.solnet.ch [212.101.18.64]) by mail05.solnet.ch (Postfix) with ESMTP id A95F4398D2; Tue, 1 Sep 2009 15:49:47 +0000 (UTC) Received: from beta.intefo.ch ([127.0.0.1]) by localhost (beta.intefo.ch [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TfzvNSDGlYPP; Tue, 1 Sep 2009 17:49:47 +0200 (CEST) Received: from [192.168.1.20] (simon.intefo.ch [192.168.1.20]) by beta.intefo.ch (Postfix) with ESMTP id 2B442770267; Tue, 1 Sep 2009 17:49:47 +0200 (CEST) Message-ID: <4A9D43DB.4090506@intefo.ch> Date: Tue, 01 Sep 2009 15:49:00 -0000 From: Simon Kallweit User-Agent: Thunderbird 2.0.0.23 (X11/20090817) MIME-Version: 1.0 To: Mandeep Sandhu CC: ecos-discuss References: <4A9D119A.1020605@intefo.ch> <4A9D168D.20800@intefo.ch> <4A9D1AFF.90605@intefo.ch> <4A9D23B9.2080201@intefo.ch> <4A9D3FB5.4000707@intefo.ch> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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-09/txt/msg00030.txt.bz2 Mandeep Sandhu wrote: > On Tue, Sep 1, 2009 at 9:07 PM, Simon Kallweit wrote: >> Mandeep Sandhu wrote: >> Please try to use cyg_lwip_thread_new() and tell me if that works. > > I'll do that now. Thanks for tips. > > Also I noted one more thing. > > My thread which calls netif_find() is executed _BEFORE_ I see the netif_add() > messages!!! > Could this be a thread synchronization issue? Should I wait for the > netif init() to > complete? You need to wait for cyg_lwip_sequential_init() to return before creating user threads. 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