replace typedef enum to pure enum ThreadAffinityPolicy

fix problem in cmake for pthread_setaffinity_np
This commit is contained in:
bas524
2015-03-17 08:33:05 +03:00
parent 9d4d3e41dd
commit 6b7c87bf5c
2 changed files with 10 additions and 7 deletions

View File

@@ -48,12 +48,12 @@ class Foundation_API ThreadPool
/// from the pool.
{
public:
typedef enum _ThreadAffinityPolicy
enum _ThreadAffinityPolicy
{
OS_DEFAULT = 0,
UNIFORM_DISTRIBUTION,
CUSTOM
} ThreadAffinityPolicy;
};
ThreadPool(int minCapacity = 2,
int maxCapacity = 16,