director_thread testcase fix
This commit is contained in:
parent
be5d046f7d
commit
e05412088f
1 changed files with 3 additions and 2 deletions
|
|
@ -18,7 +18,8 @@
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <swig_examples_lock.h>
|
#include <assert.h>
|
||||||
|
#include "swig_examples_lock.h"
|
||||||
|
|
||||||
class Foo;
|
class Foo;
|
||||||
extern "C" {
|
extern "C" {
|
||||||
|
|
@ -76,7 +77,7 @@ extern "C" {
|
||||||
|
|
||||||
void run() {
|
void run() {
|
||||||
%#ifdef _WIN32
|
%#ifdef _WIN32
|
||||||
int thread_id = 0;
|
unsigned int thread_id = 0;
|
||||||
thread_handle = (HANDLE)_beginthreadex(NULL,0,working,this,0,&thread_id);
|
thread_handle = (HANDLE)_beginthreadex(NULL,0,working,this,0,&thread_id);
|
||||||
if (thread_handle == 0) {
|
if (thread_handle == 0) {
|
||||||
fprintf(stderr, "_beginthreadex failed in run()\n");
|
fprintf(stderr, "_beginthreadex failed in run()\n");
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue