Logo AND Algorithmique Numérique Distribuée

Public GIT Repository
adding documentation
[simgrid.git] / src / sthread / sthread.h
index 9bc6c501522bb15fc2a42f9866b38bb23c7e85c6..3bda35c2369f1500d0aa80d4d074b740d1c146fd 100644 (file)
 #ifndef SIMGRID_STHREAD_H
 #define SIMGRID_STHREAD_H
 
-#if defined(__ELF__)
-#define XBT_PUBLIC __attribute__((visibility("default")))
-#else
-#define XBT_PUBLIC
-#endif
+#include "xbt/base.h"
+#include <sys/time.h>
 
 #if defined(__cplusplus)
 extern "C" {
@@ -38,8 +35,11 @@ int sthread_mutex_trylock(sthread_mutex_t* mutex);
 int sthread_mutex_unlock(sthread_mutex_t* mutex);
 int sthread_mutex_destroy(sthread_mutex_t* mutex);
 
+int sthread_gettimeofday(struct timeval* tv);
+void sthread_sleep(double seconds);
+
 #if defined(__cplusplus)
 }
 #endif
 
-#endif
\ No newline at end of file
+#endif