Go backward to Template Types Go up to RT++ Type Declarations Go forward to Thread Bags |
Thread<R, A, ..., A> t(f, a, ..., a);we have to provide the corresponding global declaration
ThreadArg
(Id, R, A, ..., A);
in one C++ source file. Id is an arbitrary identifier not in use
anywhere else (it is internally used by the macro because of the previously
explained problem with template types).
Likewise, if we want to define a thread handle
Thread<R> t;we have to provide the global declaration
ThreadRes
(R);
If one forgets some of the required declarations, the linker complains
with error messages as that shown above (mentioning the internal types
ArgumentThread
and ResultThread
, respectively).