code clean

This commit is contained in:
2020-07-10 16:57:02 +03:00
parent 614370096c
commit 835e6c7773
4 changed files with 42 additions and 57 deletions

View File

@@ -17,28 +17,27 @@
along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include "piplatform.h"
#include "piconditionvar.h"
#include "pithread.h"
#include "pitime.h"
#ifdef WINDOWS
#undef _WIN32_WINNT
#define _WIN32_WINNT 0x0600
#include "synchapi.h"
#include <windef.h>
#include <winbase.h>
# undef _WIN32_WINNT
# define _WIN32_WINNT 0x0600
# include <synchapi.h>
# include <windef.h>
# include <winbase.h>
#endif
PRIVATE_DEFINITION_START(PIConditionVariable)
#ifdef WINDOWS
CONDITION_VARIABLE nativeHandle;
CONDITION_VARIABLE nativeHandle;
#else
pthread_cond_t nativeHandle;
PIConditionLock* currentLock;
pthread_cond_t nativeHandle;
PIConditionLock* currentLock;
#endif
bool isDestroying;
bool isDestroying;
PRIVATE_DEFINITION_END(PIConditionVariable)