2 * WinPR: Windows Portable Runtime
3 * Process Thread Functions
5 * Copyright 2012 Marc-Andre Moreau <marcandre.moreau@gmail.com>
6 * Copyright 2015 Hewlett-Packard Development Company, L.P.
8 * Licensed under the Apache License, Version 2.0 (the "License");
9 * you may not use this file except in compliance with the License.
10 * You may obtain a copy of the License at
12 * http://www.apache.org/licenses/LICENSE-2.0
14 * Unless required by applicable law or agreed to in writing, software
15 * distributed under the License is distributed on an "AS IS" BASIS,
16 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17 * See the License for the specific language governing permissions and
18 * limitations under the License.
21 #ifndef WINPR_THREAD_PRIVATE_H
22 #define WINPR_THREAD_PRIVATE_H
28 #include <winpr/thread.h>
30 #include "../handle/handle.h"
32 typedef void* (*pthread_start_routine)(void*);
48 pthread_mutex_t mutex;
49 pthread_mutex_t threadIsReadyMutex;
50 pthread_cond_t threadIsReady;
51 LPTHREAD_START_ROUTINE lpStartAddress;
52 LPSECURITY_ATTRIBUTES lpThreadAttributes;
53 #if defined(WITH_DEBUG_THREADS)
58 typedef struct winpr_thread WINPR_THREAD;
68 typedef struct winpr_process WINPR_PROCESS;
72 #endif /* WINPR_THREAD_PRIVATE_H */