plastimatch
Loading...
Searching...
No Matches
dlib_threads.h
Go to the documentation of this file.
1/* -----------------------------------------------------------------------
2 See COPYRIGHT.TXT and LICENSE.TXT for copyright and license information
3 ----------------------------------------------------------------------- */
4#ifndef _dlib_threads_h_
5#define _dlib_threads_h_
6
7#include "plmsys_config.h"
8
9class Dlib_master_slave_private;
10class Dlib_semaphore_private;
11class Dlib_thread_function_private;
12
14{
15public:
16 Dlib_thread_function_private *d_ptr;
17public:
18 Dlib_thread_function (void (*thread_routine) (void *), void *arg);
20};
21
23{
24public:
25 Dlib_semaphore_private *d_ptr;
26public:
27 Dlib_semaphore (bool grabbed = false);
29public:
30 void grab ();
31 void release ();
32};
33
35{
36public:
37 Dlib_master_slave_private *d_ptr;
38public:
41public:
42 void master_grab_resource ();
43 void master_release_resource ();
44 void slave_grab_resource ();
45 void slave_release_resource ();
46};
47
48#endif
Definition dlib_threads.h:35
Dlib_master_slave_private * d_ptr
Definition dlib_threads.h:37
Definition dlib_threads.h:23
Dlib_semaphore_private * d_ptr
Definition dlib_threads.h:25
Definition dlib_threads.h:14
Dlib_thread_function_private * d_ptr
Definition dlib_threads.h:16
#define PLMSYS_API
Definition plmsys_config.h:19