提交 | 用户 | 时间
|
b2ff26
|
1 |
#pragma once |
D |
2 |
#include"cstring" |
|
3 |
#include<fstream> |
|
4 |
#include<iostream> |
|
5 |
#include<string> |
|
6 |
#include<stdio.h> |
|
7 |
#include <Windows.h> |
|
8 |
#include "Python.h" |
|
9 |
|
|
10 |
#include <thread> |
|
11 |
|
|
12 |
#ifdef PYGILTHREADLOCK_EXPORTS |
|
13 |
#define PYGILTHREADLOCK_API __declspec(dllexport) |
|
14 |
#else |
|
15 |
#define PYGILTHREADLOCK_API __declspec(dllimport) |
|
16 |
#endif |
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
/*È«¾Ö½âÊͺÍÏß³ÌËø*/ |
|
22 |
PYGILTHREADLOCK_API class PyGILThreadLock |
|
23 |
{ |
|
24 |
public: |
|
25 |
PyGILThreadLock(); |
|
26 |
~PyGILThreadLock(); |
|
27 |
|
|
28 |
private: |
|
29 |
PyGILState_STATE gstate; |
|
30 |
PyThreadState *_save; |
|
31 |
int nStatus; |
|
32 |
}; |
|
33 |
|
|
34 |
|