File: api.txt

package info (click to toggle)
massivethreads 1.02-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 13,924 kB
  • sloc: ansic: 27,814; sh: 4,559; cpp: 3,334; javascript: 1,799; makefile: 1,745; python: 523; asm: 373; perl: 118; lisp: 9
file content (20 lines) | stat: -rw-r--r-- 569 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20

There are three APIs of MassiveThreads.

(1) native API, which is C functions such as myth_create and
myth_join.

(2) pthread-compatible API, which is almost identical to that of
pthreads, but much faster.

(3) (C++ only) an API compatible with TBB's task_group class.  In a
nutshell, it provides the following interface.

class task_group {
  void run(function<void ()> f);
  void wait();
};

With C++ compiler supporting lambda expressions (e.g., g++ version >=
4.5), task parallel programs can be succinctly expressed.  See
examples/task_group/fib.cc for examples.