Date: Sat, 05 Nov 2005 19:27:35 -0500 From: Nicolas Blais <nb_root@videotron.ca> To: freebsd-threads@freebsd.org Subject: c++ with pthread? Message-ID: <200511051927.40752.nb_root@videotron.ca>
next in thread | raw e-mail | index | archive | help
--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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511051927.40752.nb_root>