Jelajahi Sumber

more spinlock cleanup

Nicolas Cannasse 7 tahun lalu
induk
melakukan
151f6de018
1 mengubah file dengan 0 tambahan dan 13 penghapusan
  1. 0 13
      src/std/thread.c

+ 0 - 13
src/std/thread.c

@@ -31,20 +31,12 @@ struct _hl_tls {
 	void *value;
 	void *value;
 };
 };
 
 
-struct _hl_spinlock {
-	void *value;
-};
-
 #elif defined(HL_WIN)
 #elif defined(HL_WIN)
 
 
 struct _hl_mutex {
 struct _hl_mutex {
 	CRITICAL_SECTION cs;
 	CRITICAL_SECTION cs;
 };
 };
 
 
-struct _hl_spinlock {
-	void *value;
-};
-
 #else
 #else
 
 
 #	include <pthread.h>
 #	include <pthread.h>
@@ -59,11 +51,6 @@ struct _hl_tls {
 	pthread_key_t key;
 	pthread_key_t key;
 };
 };
 
 
-struct _hl_spinlock {
-	pthread_mutex_t lock;
-	void *value;
-};
-
 #endif
 #endif
 
 
 // ----------------- ALLOC
 // ----------------- ALLOC