From owner-freebsd-threads@FreeBSD.ORG Sun Nov 6 00:27:44 2005 Return-Path: X-Original-To: freebsd-threads@freebsd.org Delivered-To: freebsd-threads@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 01BB916A41F for ; Sun, 6 Nov 2005 00:27:44 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from relais.videotron.ca (relais.videotron.ca [24.201.245.36]) by mx1.FreeBSD.org (Postfix) with ESMTP id A968343D46 for ; Sun, 6 Nov 2005 00:27:43 +0000 (GMT) (envelope-from nb_root@videotron.ca) Received: from clk01a ([66.130.198.54]) by VL-MO-MR004.ip.videotron.ca (Sun Java System Messaging Server 6.2-2.05 (built Apr 28 2005)) with ESMTP id <0IPI00LMFBY5VB70@VL-MO-MR004.ip.videotron.ca> for freebsd-threads@freebsd.org; Sat, 05 Nov 2005 19:27:42 -0500 (EST) Date: Sat, 05 Nov 2005 19:27:35 -0500 From: Nicolas Blais To: freebsd-threads@freebsd.org Message-id: <200511051927.40752.nb_root@videotron.ca> MIME-version: 1.0 Content-type: multipart/signed; boundary=nextPart13399409.ValbMmn0Cg; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-transfer-encoding: 7bit User-Agent: KMail/1.8.3 Subject: c++ with pthread? X-BeenThere: freebsd-threads@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Threading on FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 06 Nov 2005 00:27:44 -0000 --nextPart13399409.ValbMmn0Cg Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi, I've had FreeBSD and been C++'ing with it since version 3.1, and now I feel= =20 like I must jump into threading... I found a nice example with pthread (in C) here :=20 http://www.cs.ucsb.edu/~tyang/class/pthreads/index_sgi.html (see p_hello.c) It compiles and works fine. I'm trying to make the same program in C++. Is= =20 the syntax for pthreading the same as in C? I was wondering if someone can= =20 point me in the right direction. Also, is there anything I should be worried about when using pthread and C+= +?=20 (Some years ago, I heard that FreeBSD's pthread didn't like C++... could be= a=20 false rumour) Thanks, Nicolas. =2D-=20 =46reeBSD 7.0-CURRENT #0: Sat Nov 5 12:12:36 EST 2005 =20 root@clk01a:/usr/obj/usr/src/sys/CLK01A=20 PGP? : http://www.clkroot.net/security/nb_root.asc --nextPart13399409.ValbMmn0Cg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDbU38z38ton5LGeIRAowSAJ9U3Y0eXOpGwMlytJ40TFN7w1jARgCdHNmw Y8ILWSGd27M40gWVoJEcAFI= =Hyqi -----END PGP SIGNATURE----- --nextPart13399409.ValbMmn0Cg--