From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from alln-iport-6.cisco.com (alln-iport-6.cisco.com [173.37.142.93]) by dpdk.org (Postfix) with ESMTP id B7958F72 for ; Thu, 14 Jul 2016 20:10:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=cisco.com; i=@cisco.com; l=8782; q=dns/txt; s=iport; t=1468519851; x=1469729451; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=TcqJHrhmuMQlG32CSXINGlaZlH9V25XatIPRRWpaAoI=; b=SV4QG6dY8MMCNl3SaVmPbqprSujoSgQ/TfssyZJjkI9E7ztS7/06XUgg S4r+gVmeU5Nm2MrAocPVrlD7fOv6P1cv4X1xVBQXZdGGb1hyOfMKxCngc leEV7100YVnSmblSignTTAEwrGVHoMzO9CW1ZrfJwkSp7AZhCK/ypye4a Q=; X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A0A0AgB81IdX/5pdJa1cgz5WfAa4ZYF7J?= =?us-ascii?q?II+gzcCHIEXOBQBAQEBAQEBZSeEXAEBBAEjEUUFCwIBCBUDAgImAgICMBUQAgQ?= =?us-ascii?q?OBYgoCA6yYo42AQEBAQEBAQEBAQEBAQEBAQEBAQEBHIEBhSmBeIJVhBwkF4JqK?= =?us-ascii?q?4ISHQWOBwuLDQGGEYJ7gnOCWYFrFzeEC4htkBgBHjaCCRyBTG4BhilFfwEBAQ?= X-IronPort-AV: E=Sophos;i="5.28,364,1464652800"; d="scan'208";a="297902408" Received: from rcdn-core-3.cisco.com ([173.37.93.154]) by alln-iport-6.cisco.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 Jul 2016 18:10:50 +0000 Received: from XCH-RTP-003.cisco.com (xch-rtp-003.cisco.com [64.101.220.143]) by rcdn-core-3.cisco.com (8.14.5/8.14.5) with ESMTP id u6EIAoBq031585 (version=TLSv1/SSLv3 cipher=AES256-SHA bits=256 verify=FAIL); Thu, 14 Jul 2016 18:10:50 GMT Received: from xch-rtp-005.cisco.com (64.101.220.145) by XCH-RTP-003.cisco.com (64.101.220.143) with Microsoft SMTP Server (TLS) id 15.0.1210.3; Thu, 14 Jul 2016 14:10:49 -0400 Received: from xch-rtp-005.cisco.com ([64.101.220.145]) by XCH-RTP-005.cisco.com ([64.101.220.145]) with mapi id 15.00.1210.000; Thu, 14 Jul 2016 14:10:49 -0400 From: "Damjan Marion (damarion)" To: Jan Viktorin CC: "dev@dpdk.org" , Bruce Richardson , Konstantin Ananyev , David Marchand Thread-Topic: [dpdk-dev] spinlock: Move constructor function out of header file Thread-Index: AQHR3foM8k8goj5lX0KBo8A7CRZtGKAYfS8A Date: Thu, 14 Jul 2016 18:10:49 +0000 Message-ID: References: <20160714132729.27024-1-damarion@cisco.com> <20160714200336.119bcfce@jvn> In-Reply-To: <20160714200336.119bcfce@jvn> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ms-exchange-messagesentrepresentingtype: 1 x-ms-exchange-transport-fromentityheader: Hosted x-originating-ip: [10.55.252.55] Content-Type: text/plain; charset="utf-8" Content-ID: <227A147E076EA74D84CF57718680F90E@emea.cisco.com> Content-Transfer-Encoding: base64 MIME-Version: 1.0 Subject: Re: [dpdk-dev] spinlock: Move constructor function out of header file X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2016 18:10:52 -0000 DQpEZWFyIEphbiwNCg0KVGhhbmsgeW91IGZvciB5b3VyIGNvbW1lbnRzLiBBIGJpdCB0b28gbXVj aCBvdmVyaGVhZCB0byBzdWJtaXQgc2ltcGxlIHBhdGNoDQpzbyBsZXTigJlzIGZvcmdldCBhYm91 dCBpdC4gSSB3aWxsIGp1c3QgYWRkIGl0IGFzIGl0IGlzIHRvIG91ciBw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