Decouple <cstdint>

This commit is contained in:
Martin Natano
2023-04-21 22:13:41 +02:00
parent bcea05dd67
commit aa87f85eef
167 changed files with 1533 additions and 1307 deletions
+6 -4
View File
@@ -1,6 +1,8 @@
#ifndef THREADS_WIN32_H
#define THREADS_WIN32_H
#include <cstdint>
#include "Threads.h"
#if defined(_WINDOWS)
# include <windows.h>
@@ -19,11 +21,11 @@ public:
void Halt( bool Kill );
void Resume();
uint64_t GetThreadId() const;
std::uint64_t GetThreadId() const;
int Wait();
};
HANDLE Win32ThreadIdToHandle( uint64_t iID );
HANDLE Win32ThreadIdToHandle( std::uint64_t iID );
class MutexImpl_Win32: public MutexImpl
{
@@ -82,7 +84,7 @@ private:
/*
* (c) 2001-2004 Glenn Maynard
* All rights reserved.
*
*
* Permission is hereby granted, free of charge, to any person obtaining a
* copy of this software and associated documentation files (the
* "Software"), to deal in the Software without restriction, including
@@ -92,7 +94,7 @@ private:
* copyright notice(s) and this permission notice appear in all copies of
* the Software and that both the above copyright notice(s) and this
* permission notice appear in supporting documentation.
*
*
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF