Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
convert actor-startkilltime to s4u API
[simgrid.git] / tools / cmake / test_prog / prog_thread_storage.c
index edcab030ca14a54060baa83fde206cc0eabbd3f3..e79536e41bf6135d26fe4d73c2d7c3a220c7e2d4 100644 (file)
@@ -6,15 +6,9 @@
 
 #include <stdio.h>
 
-#ifdef _MSC_VER
-__declspec(thread)
-#else 
-__thread 
-#endif
-int thread_specific_variable = 0;
+__thread int thread_specific_variable = 0;
 
 int main(void) {
-
   thread_specific_variable++;
   printf("%d\n", thread_specific_variable);
   return 0;