A subtle yet important point: arguments will always be copied into the new thread. This is a (very sensible) limitation introduced by the C++ standard. To support seamless use, the thread-wrapper now rewrites the argument types picked up from the invocation, to prevent passing on a reference type, which typically ensues when invoking with a variable name. Otherwise confusing error messages would be emitted from deep within the STD library. As a further consequence, function signatures involving reference arguments can no longer be bound (which is desirable; a function to be performed within a separate thread must either rely on value arguments, or deliberately use std::ref wrappers to pass references, assuming you know what you're doing) |
||
|---|---|---|
| .. | ||
| common | ||
| include | ||
| lib | ||
| lumiera | ||
| plugin | ||
| stage | ||
| steam | ||
| tool | ||
| vault | ||
| .gitignore | ||
| DIR_INFO | ||
| doxygen.dox | ||
| SConscript | ||