From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from cluster-j.mailcontrol.com (cluster-j.mailcontrol.com [85.115.54.190]) by dpdk.org (Postfix) with ESMTP id 825F02BDF for ; Tue, 8 Nov 2016 14:12:11 +0100 (CET) Received: from mail2.neceur.com (mail2.neceur.com [195.47.207.4]) by rly41j.srv.mailcontrol.com (MailControl) with ESMTP id uA8DCALx005869 for ; Tue, 8 Nov 2016 13:12:10 GMT Received: from intmail1.neceur.com (intmail1.neceur.com [172.29.14.11]) by mail2.neceur.com (8.14.4/8.14.4) with ESMTP id uA8DCAjN000408 for ; Tue, 8 Nov 2016 13:12:10 GMT Received: from av2.neceur.com (av2.neceur.com [172.29.177.7]) by intmail1.neceur.com (8.14.7/8.14.7) with ESMTP id uA8DCJam031797 for ; Tue, 8 Nov 2016 13:12:19 GMT Received: from av2.neceur.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id F11B9CA051 for ; Tue, 8 Nov 2016 13:12:09 +0000 (GMT) Received: from av2.neceur.com (unknown [127.0.0.1]) by IMSVA (Postfix) with ESMTP id E62B0CA050 for ; Tue, 8 Nov 2016 13:12:09 +0000 (GMT) Received: from EUX13SRV2.EU.NEC.COM (unknown [172.29.155.139]) by av2.neceur.com (Postfix) with ESMTPS for ; Tue, 8 Nov 2016 13:12:09 +0000 (GMT) Received: from EUX13SRV1.EU.NEC.COM (172.29.155.138) by EUX13SRV2.EU.NEC.COM (172.29.155.139) with Microsoft SMTP Server (TLS) id 15.0.1156.6; Tue, 8 Nov 2016 13:12:09 +0000 Received: from EUX13SRV1.EU.NEC.COM ([172.29.155.138]) by EUX13SRV1.EU.NEC.COM ([172.29.155.138]) with mapi id 15.00.1156.000; Tue, 8 Nov 2016 13:12:08 +0000 From: David Aldrich To: "users@dpdk.org" Thread-Topic: Is DPDK compatible with C++11 threads? Thread-Index: AdI5wJ4DFyR6sAaXS9+lshx5rT4LrA== Date: Tue, 8 Nov 2016 13:12:08 +0000 Message-ID: Accept-Language: en-GB, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [172.29.155.186] MIME-Version: 1.0 X-TM-AS-GCONF: 00 X-Scanned-By: MailControl 44278.1894 (www.mailcontrol.com) on 10.74.0.151 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.15 Subject: [dpdk-users] Is DPDK compatible with C++11 threads? X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Nov 2016 13:12:12 -0000 Hi As a beginner with DPDK, I want to consider how we can convert an existing = Linux application from using the kernel network stack to using DPDK. This existing app is multi-threaded, using the C++11 thread, mutex etc. cla= sses. We assign threads to cores by calling pthread_setaffinity_np(). I have looked at the DPDK helloworld application and see that it launches t= hreads using the DPDK API: /* call lcore_hello() on every slave lcore */ RTE_LCORE_FOREACH_SLAVE(lcore_id) { rte_eal_remote_launch(lcore_hello, NULL, lcor= e_id); } If we use DPDK, can we retain our existing C++11 threads or are we obliged = to use the DPDK threading APIs exclusively? Perhaps a more basic question is applicable: is DPDK compatible with C++? Best regards David Best regards David