Sha256: 666e37d21586530deb0eb59c3f196d6c21f8156e660758abb29061805c6b0523
Contents?: true
Size: 844 Bytes
Versions: 13
Compression:
Stored size: 844 Bytes
Contents
// 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_
Version data entries
13 entries across 13 versions & 1 rubygems