- 论坛徽章:
- 0
|
Note: You can't mix NSPR's user-level threads with the native pthreads.
These two thread implementations are not compatible. You have to
use the pthreads version of NSPR.
Threading Combinations
Mozilla, glib, and NSPR all do their own thread wrangling, so they must
use compatible ways of interacting with threads. There are only a few ways
of building all the libraries so that they are compatible:
- pthreads
- glib: configure --with-threads=posix
- nspr: gmake MOZILLA_CLIENT=1 USE_PTHREADS=1
- mozilla: configure --with-pthreads
- NSPR user-level threads
- glib: configure --with-threads=none
- nspr: gmake MOZILLA_CLIENT=1
(MOZILLA_CLIENT=1 makes user-level threads the default) - mozilla: configure (default is to use
user-level threads)
本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u1/58649/showart_529896.html |
|