[or-cvs] Add rudimentary pthread support that needs more testing.

Ben Laurie ben at algroup.co.uk
Fri Jan 28 05:37:21 UTC 2005


Nick Mathewson wrote:
> Update of /home/or/cvsroot/tor/src/common
> In directory moria.mit.edu:/tmp/cvs-serv32238/src/common
> 
> Modified Files:
> 	compat.c compat.h 
> Log Message:
> Add rudimentary pthread support that needs more testing.

You have two things - HAVE_PTHREAD_H and USE_PTHREADS - does this 
indicate that use of pthreads is optional (I ask since under FreeBSD 
pthreads are very flaky and generally to be avoided)?

If not, I strongly advise that you should make them so.

BTW, why do threads at all?

Cheers,

Ben.

-- 
http://www.apache-ssl.org/ben.html       http://www.thebunker.net/

"There is no limit to what a man can do or how far he can go if he
doesn't mind who gets the credit." - Robert Woodruff



More information about the tor-commits mailing list