@@ -83,8 +83,8 @@ namespace pthread {
8383
8484// /** Starts running given function in a new trhread.
8585// *
86- // * @ param f function to run in thread
87- // * @ param args function paramleters/arguments.
86+ // * param f function to run in thread
87+ // * param args function paramleters/arguments.
8888// */
8989// template<class Function, class... Args> explicit thread(Function&& f, Args&&... args);
9090
@@ -272,7 +272,7 @@ namespace pthread {
272272 */
273273 virtual ~thread_group ();
274274
275- /* * @param add/register a thread to the group.
275+ /* * @param thread add/register a thread to the group.
276276 */
277277 void add (abstract_thread *thread);
278278
@@ -306,6 +306,22 @@ namespace pthread {
306306 thread_exception (const string message, const int pthread_error = 0 );
307307 };
308308
309+ /* * \namespace pthread::this_thread
310+ *
311+ * helper functions
312+ */
313+ namespace this_thread {
314+
315+ /* * let the current thread sleep for the given milliseconds.
316+ *
317+ * @param millis time to wait.
318+ */
319+ void sleep (const int millis);
320+
321+ /* * @return current thread id/reference */
322+ pthread_t get_id () ;
323+ }
324+
309325 // template implementations ------
310326
311327// // GCC magic
@@ -401,20 +417,6 @@ namespace pthread {
401417//
402418// }
403419
404- /* * \namespace this_thread
405- *
406- * helper functions
407- */
408- namespace this_thread {
409-
410- /* * let the current thread sleep for the given milliseconds.
411- *
412- * @param milis time to wait.
413- */
414- void sleep (const int millis);
415-
416- pthread_t get_id () ;
417- }
418420
419421} // namespace pthread
420422#endif /* thread_hpp */
0 commit comments