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>
index | next in thread | raw e-mail
[-- Attachment #1 --] Hi, I've had FreeBSD and been C++'ing with it since version 3.1, and now I feel like I must jump into threading... I found a nice example with pthread (in C) here : 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 the syntax for pthreading the same as in C? I was wondering if someone can point me in the right direction. Also, is there anything I should be worried about when using pthread and C++? (Some years ago, I heard that FreeBSD's pthread didn't like C++... could be a false rumour) Thanks, Nicolas. -- FreeBSD 7.0-CURRENT #0: Sat Nov 5 12:12:36 EST 2005 root@clk01a:/usr/obj/usr/src/sys/CLK01A PGP? : http://www.clkroot.net/security/nb_root.asc [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQBDbU38z38ton5LGeIRAowSAJ9U3Y0eXOpGwMlytJ40TFN7w1jARgCdHNmw Y8ILWSGd27M40gWVoJEcAFI= =Hyqi -----END PGP SIGNATURE-----help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511051927.40752.nb_root>
