File tree 2 files changed +7
-7
lines changed
2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -389,7 +389,7 @@ threadqueue_queue_t * kvz_threadqueue_init(int thread_count)
389
389
threadqueue -> first = NULL ;
390
390
threadqueue -> last = NULL ;
391
391
392
- #ifndef _WIN32
392
+ #ifndef _MSC_VER
393
393
pthread_attr_t attr ;
394
394
if (pthread_attr_init (& attr ) != 0 ) {
395
395
fprintf (stderr , "pthread_attr_init failed!\n" );
@@ -407,7 +407,7 @@ threadqueue_queue_t * kvz_threadqueue_init(int thread_count)
407
407
}
408
408
}
409
409
#else
410
- pthread_attr_t * attr ;
410
+ pthread_attr_t attr ;
411
411
#endif
412
412
413
413
// Lock the queue before creating threads, to ensure they all have correct information.
@@ -425,7 +425,7 @@ threadqueue_queue_t * kvz_threadqueue_init(int thread_count)
425
425
return threadqueue ;
426
426
427
427
failed :
428
- #ifndef _WIN32
428
+ #ifndef _MSC_VER
429
429
if (pthread_attr_destroy (& attr ) != 0 ) {
430
430
fprintf (stderr , "pthread_attr_destroy failed!\n" );
431
431
}
Original file line number Diff line number Diff line change @@ -27,10 +27,10 @@ typedef void* pthread_rwlock_t;
27
27
typedef void * pthread_t ;
28
28
typedef void * (voidp_voidp_func )(void * );
29
29
30
- typedef void pthread_attr_t ;
31
- typedef void pthread_condattr_t ;
32
- typedef void pthread_mutexattr_t ;
33
- typedef void pthread_rwlockattr_t ;
30
+ typedef void * pthread_attr_t ;
31
+ typedef void * pthread_condattr_t ;
32
+ typedef void * pthread_mutexattr_t ;
33
+ typedef void * pthread_rwlockattr_t ;
34
34
35
35
// Parameter names that have been commented away do nothing,
36
36
// as they are always null when the functions are used in Kvazaar.
You can’t perform that action at this time.
0 commit comments