From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id AFC15231E for ; Sat, 21 Jul 2018 15:49:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 21 Jul 2018 06:49:49 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,385,1526367600"; d="scan'208";a="242143083" Received: from fmsmsx104.amr.corp.intel.com ([10.18.124.202]) by orsmga005.jf.intel.com with ESMTP; 21 Jul 2018 06:49:46 -0700 Received: from fmsmsx114.amr.corp.intel.com (10.18.116.8) by fmsmsx104.amr.corp.intel.com (10.18.124.202) with Microsoft SMTP Server (TLS) id 14.3.319.2; Sat, 21 Jul 2018 06:49:45 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.3]) by FMSMSX114.amr.corp.intel.com ([169.254.6.68]) with mapi id 14.03.0319.002; Sat, 21 Jul 2018 06:49:45 -0700 From: "Wiles, Keith" To: "wubenqing@ruijie.com.cn" CC: "dev@dpdk.org" Thread-Topic: [dpdk-dev] Does lthread_cond_wait need a mutex? Thread-Index: AQHUIPmu5uGrrqFbo0i6K89bJX1gEg== Date: Sat, 21 Jul 2018 13:49:45 +0000 Message-ID: <8005C6D6-A682-4864-BEBE-8947F16439BF@intel.com> References: <82A10A71B70FF2449A8AD233969A45A11DB0310F@FZEX4.ruijie.com.cn> <84056D8E-0669-403A-ABE4-005CE1FC57FB@intel.com> <82A10A71B70FF2449A8AD233969A45A11DB07B25@FZEX4.ruijie.com.cn> <1A8B8E17-366B-475A-8399-AE7C26CED6C7@intel.com> <82A10A71B70FF2449A8AD233969A45A11DB0CCBA@FZEX4.ruijie.com.cn> In-Reply-To: <82A10A71B70FF2449A8AD233969A45A11DB0CCBA@FZEX4.ruijie.com.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.255.77.92] Content-Type: text/plain; charset="us-ascii" Content-ID: Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Subject: Re: [dpdk-dev] Does lthread_cond_wait need a mutex? X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 21 Jul 2018 13:49:51 -0000 > On Jul 20, 2018, at 8:32 PM, wubenqing@ruijie.com.cn wrote: >=20 > Hi~ > I would be appreciate it if you could provide your lthread code for m= e. And I found that DPDK lthreads does not provide lthread_cond_timedwait A= PI which I am looking for. > Thanks. I took the lthread code and renamed it and did a number of changes, so it w= ill not be easy to drop into the lthread code as it is not just these funct= ions that have to change. I am very hesitant to give that code out as it is= still a work in progress and may not even work correctly in all cases. I will have a look at the code and see what I can do, but I make no promise= s. >=20 > Regards, > Wubenqing > =20 Regards, Keith