Chinaunix首页 | 论坛 | 博客
  • 博客访问: 77239
  • 博文数量: 11
  • 博客积分: 1476
  • 博客等级: 上尉
  • 技术积分: 167
  • 用 户 组: 普通用户
  • 注册时间: 2008-01-03 13:01
文章分类

全部博文(11)

文章存档

2009年(2)

2008年(9)

我的朋友

分类: LINUX

2008-04-13 21:03:47

    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
    1. glib: configure --with-threads=posix
    2. nspr: gmake MOZILLA_CLIENT=1 USE_PTHREADS=1
    3. mozilla: configure --with-pthreads
  • NSPR user-level threads
    1. glib: configure --with-threads=none
    2. nspr: gmake MOZILLA_CLIENT=1 (MOZILLA_CLIENT=1 makes user-level threads the default)
    3. mozilla: configure (default is to use user-level threads)
阅读(1158) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~