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 956D1160 for ; Wed, 18 Jul 2018 17:02:07 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 18 Jul 2018 08:02:05 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,370,1526367600"; d="scan'208";a="73403198" Received: from fmsmsx108.amr.corp.intel.com ([10.18.124.206]) by fmsmga001.fm.intel.com with ESMTP; 18 Jul 2018 08:01:03 -0700 Received: from fmsmsx152.amr.corp.intel.com (10.18.125.5) by FMSMSX108.amr.corp.intel.com (10.18.124.206) with Microsoft SMTP Server (TLS) id 14.3.319.2; Wed, 18 Jul 2018 08:01:03 -0700 Received: from fmsmsx117.amr.corp.intel.com ([169.254.3.3]) by FMSMSX152.amr.corp.intel.com ([169.254.6.118]) with mapi id 14.03.0319.002; Wed, 18 Jul 2018 08:01:03 -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: AdQeUXkKxfebgb9+QH+Q0nPHwl8TtAAkVd2A Date: Wed, 18 Jul 2018 15:01:02 +0000 Message-ID: <84056D8E-0669-403A-ABE4-005CE1FC57FB@intel.com> References: <82A10A71B70FF2449A8AD233969A45A11DB0310F@FZEX4.ruijie.com.cn> In-Reply-To: <82A10A71B70FF2449A8AD233969A45A11DB0310F@FZEX4.ruijie.com.cn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [10.254.186.213] Content-Type: text/plain; charset="utf-8" Content-ID: Content-Transfer-Encoding: base64 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: Wed, 18 Jul 2018 15:02:08 -0000 DQoNCj4gT24gSnVsIDE3LCAyMDE4LCBhdCAxMDo0MyBQTSwgd3ViZW5xaW5nQHJ1aWppZS5jb20u Y24gd3JvdGU6DQo+IA0KPiBIaX4NCj4gICAgUmVmZXJlbmNlOiBodHRwOi8vZG9jLmRwZGsub3Jn L2d1aWRlcy0xOC4wNS9zYW1wbGVfYXBwX3VnL3BlcmZvcm1hbmNlX3RocmVhZC5odG1sP2hpZ2hs aWdodD1sdGhyZWFkDQo+ICAgIFRoZSBMLXRocmVhZCBzdWJzeXN0ZW0gcHJvdmlkZXMgYSBzZXQg b2YgZnVuY3Rpb25zIHRoYXQgYXJlIGxvZ2ljYWxseSBlcXVpdmFsZW50IHRvIHRoZSBjb3JyZXNw b25kaW5nIGZ1bmN0aW9ucyBvZmZlcmVkIGJ5IHRoZSBQT1NJWCBwdGhyZWFkIGxpYnJhcnkuDQo+ ICAgIEkgdGhpbmsgdGhlcmUgaXMgYSBidWcgd2l0aCBwdGhyZWFkX2NvbmRfd2FpdCBvZiBsdGhy ZWFkIGltcGxlbWVudC4NCj4gICAgTG9vayBhdCB0aGlzIGNvZGUsIHRoZXJlIGFyZSB0d28gbHRo cmVhZDoNCj4gDQo+IGx0aHJlYWQxOg0KPiAgICBwdGhyZWFkX211dGV4X2xvY2sobXV0ZXgpOyAg ICAgICAgICAgICAgICAgLy9hMQ0KPiAgICBpZiAocHJlZGljYXRlID09IEZBTFNFKSB7ICAgICAg ICAgICAgICAgICAgICAgICAgLy9hMg0KPiAgICAgICAgcHRocmVhZF9jb25kX3dhaXQoY29uZCwg bXV0ZXgpICAgICAgICAvL2EzDQo+ICAgIH0NCj4gICAgcHRocmVhZF9tdXRleF91bmxvY2sobXV0 ZXgpOyAgICAgICAg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