Updating threadpool / StackTrace

This commit is contained in:
Mark Berrill
2019-03-18 09:42:44 -04:00
parent 9d6440e5cd
commit 0a49f9ce77
38 changed files with 3849 additions and 4486 deletions

View File

@@ -2,6 +2,8 @@
// but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
#ifndef included_ThreadPoolAtomicHelpers
#define included_ThreadPoolAtomicHelpers
#include <stdexcept>
#include <stdint.h>
#include <stdio.h>
#include <typeinfo>
@@ -10,7 +12,6 @@
#if defined( WIN32 ) || defined( _WIN32 ) || defined( WIN64 ) || defined( _WIN64 )
// Using windows
#define USE_WINDOWS
#define NOMINMAX
#include <process.h>
#include <stdlib.h>
#include <windows.h>
@@ -529,6 +530,11 @@ inline void atomic_swap( int64_atomic volatile *x, int64_atomic *y )
}
// Atomic operations for floating types
double atomic_add( double volatile *x, double y );
float atomic_add( float volatile *x, float y );
// Define an atomic counter
struct counter_t {
public: