blob: 43fbc474db957f7540e60d8a719e66d5c492a155 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
|
// Copyright (C) 2006 Davis E. King (davis@dlib.net)
// License: Boost Software License See LICENSE.txt for the full license.
#undef DLIB_CREATE_NEW_THREAD_EXTENSIOn_ABSTRACT_
#ifdef DLIB_CREATE_NEW_THREAD_EXTENSIOn_ABSTRACT_
#include "threads_kernel_abstract.h"
namespace dlib
{
// ----------------------------------------------------------------------------------------
template <
typename T,
void (T::*funct)()
>
bool create_new_thread (
T& obj
);
/*!
ensures
- creates a new thread and calls obj.*funct() from it.
- returns true upon success and false upon failure to create the new thread.
!*/
// ----------------------------------------------------------------------------------------
}
#endif // DLIB_CREATE_NEW_THREAD_EXTENSIOn_ABSTRACT_
|