c++ with pthread?
Nicolas Blais
nb_root at videotron.ca
Sat Nov 5 16:27:44 PST 2005
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 at clk01a:/usr/obj/usr/src/sys/CLK01A
PGP? : http://www.clkroot.net/security/nb_root.asc
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-threads/attachments/20051105/36d7a22a/attachment.bin
More information about the freebsd-threads
mailing list