14 lines
509 B
C
14 lines
509 B
C
#pragma once
|
|
|
|
#include <windows.h>
|
|
#include <thread>
|
|
#include <stdio.h>
|
|
#include <sslib\SSLib.h>
|
|
#include <locale.h>
|
|
|
|
VOID simple_non_reentrant_thread(int times, int* pCounter);
|
|
VOID simple_non_reentrant_thread_mutex(int times, int* pCounter);
|
|
static BOOL test_simple_non_reentrant_thread(int increments, int threads_number);
|
|
static BOOL test_simple_non_reentrant_thread_mutex(int increments, int threads_number);
|
|
static VOID thread_turns(int thread_number);
|
|
static VOID test_thread_turns(int thread_numbers); |