Chinaunix首页 | 论坛 | 博客
  • 博客访问: 454620
  • 博文数量: 143
  • 博客积分: 6159
  • 博客等级: 准将
  • 技术积分: 1667
  • 用 户 组: 普通用户
  • 注册时间: 2010-08-25 23:08
文章分类

全部博文(143)

文章存档

2013年(1)

2012年(11)

2011年(55)

2010年(76)

分类:

2010-11-27 10:15:38

task_scheduler_init

每个thread都需要个task_scheduler_init类。
在进行threading前:
task_scheduler_init init(n),n就是初始化的线程数目

include/tbb/task_scheduler_init.h

class task_scheduler_init : internal::no_copy {
    internal::scheduler *my_scheduler;
    
public:
    void initializse
    void terminate

public:

    task_scheduler_init(int #threads = automatic,

                        stack_size_type stack_size = 0);

};


阅读(1038) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~