From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from FZEX3.ruijie.com.cn (unknown [120.35.11.201]) by dpdk.org (Postfix) with ESMTP id 5353E1C01 for ; Wed, 18 Jul 2018 07:43:46 +0200 (CEST) Received: from FZEX4.ruijie.com.cn ([fe80::4814:fd0d:3b:861c]) by FZEX3.ruijie.com.cn ([fe80::9480:e49e:2190:b001%17]) with mapi id 14.03.0123.003; Wed, 18 Jul 2018 13:43:44 +0800 From: To: Thread-Topic: Does lthread_cond_wait need a mutex? Thread-Index: AdQeUXkKxfebgb9+QH+Q0nPHwl8TtA== Date: Wed, 18 Jul 2018 05:43:43 +0000 Message-ID: <82A10A71B70FF2449A8AD233969A45A11DB0310F@FZEX4.ruijie.com.cn> Accept-Language: zh-CN, en-US Content-Language: zh-CN X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.21.1.178] MIME-Version: 1.0 Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [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 05:43:47 -0000 SGl+DQogICAgUmVmZXJlbmNlOiBodHRwOi8vZG9jLmRwZGsub3JnL2d1aWRlcy0xOC4wNS9zYW1w bGVfYXBwX3VnL3BlcmZvcm1hbmNlX3RocmVhZC5odG1sP2hpZ2hsaWdodD1sdGhyZWFkDQogICAg VGhlIEwtdGhyZWFkIHN1YnN5c3RlbSBwcm92aWRlcyBhIHNldCBvZiBmdW5jdGlvbnMgdGhhdCBh cmUgbG9naWNhbGx5IGVxdWl2YWxlbnQgdG8gdGhlIGNvcnJlc3BvbmRpbmcgZnVuY3Rpb25zIG9m ZmVyZWQgYnkgdGhlIFBPU0lYIHB0aHJlYWQgbGlicmFyeS4NCiAgICBJIHRoaW5rIHRoZXJlIGlz IGEgYnVnIHdpdGggcHRocmVhZF9jb25kX3dhaXQgb2YgbHRocmVhZCBpbXBsZW1lbnQuDQogICAg TG9vayBhdCB0aGlzIGNvZGUsIHRoZXJlIGFyZSB0d28gbHRocmVhZDoNCg0KbHRocmVhZDE6DQog ICAgcHRocmVhZF9tdXRleF9sb2NrKG11dGV4KTsgICAgICAgICAgICAgICAgIC8vYTENCiAgICBp ZiAocHJlZGljYXRlID09IEZBTFNFKSB7ICAgICAgICAgICAgICAgICAgICAgICAgLy9hMg0KICAg ICAgICBwdGhyZWFkX2NvbmRfd2FpdChjb25kLCBtdXRleCkgICAgICAgIC8vYTMNCiAgICB9DQog ICAgcHRocmVhZF9tdXRleF91bmxvY2sobXV0ZXgpOyAgICAgICAgICAgIC8vYTQNCg0KaW50IHB0 aHJlYWRfY29uZF93YWl0KHB0aHJlYWRfY29uZF90ICpjb25kLCBwdGhyZWFkX211dGV4X3QgKm11 dGV4KQ0Kew0KaWYgKG92ZXJyaWRlKSB7DQpwdGhyZWFkX211dGV4X3VubG9jayhtdXRleCk7IC8v YTMxDQppbnQgcnYgPSBsdGhyZWFkX2NvbmRfd2FpdCgqKHN0cnVjdCBsdGhyZWFkX2NvbmQgKiop Y29uZCwgMCk7IC8vYTMyDQoNCnB0aHJlYWRfbXV0ZXhfbG9jayhtdXRleCk7IC8vYTMzDQpyZXR1 cm4gcnY7DQp9DQpyZXR1cm4gX3N5c19wdGhyZWFkX2Z1bmNzLmZfcHRocmVhZF9jb25kX3dhaXQo Y29uZCwgbXV0ZXgpOw0KfQ0KDQpsdGhyZWFkMjoNCiAgICBwdGhyZWFkX211dGV4X2xvY2sobXV0 ZXgpOyAgICAgICAgICAgICAgICAvL2IxDQogICAgcHJlZGljYXRlID0gVFJVRTsgICAgICAgICAg ICAgICAgICAgICAgICAgICAgICAgIC8vYjINCiAgICBwdGhyZWFkX211dGV4X3VubG9jayhtdXRl eCk7ICAgICAgICAgICAgLy9iMw0KICAgIHB0aHJlYWRfY29uZF9zaWduYWwoY29uZCk7ICAgICAg ICAgICAgICAgIC8vYjQNCg0KDQogICAgSWYgdGhlIHNlcXVlbmNlIGlzOg0KICAgIGExLT5hMi0+ YTMxLT5iMS0+YjItPmIzLT5iNC0+YTMyDQogICAgV2lsbCBsdGhyZWFkMSBzbGVlcCBmb3JldmVy Pw0KDQpfX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fXw0KzuKxvsfkKNHQzuUguKPW3SkN Cg==