Sfoglia il codice sorgente

Add STARPU_COMPONENT_MUTEX_TRYLOCK

Samuel Thibault 7 anni fa
parent
commit
e16225a1d9
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      include/starpu_sched_component.h

+ 2 - 0
include/starpu_sched_component.h

@@ -236,6 +236,8 @@ do \
 } \
 while(0)
 
+#define STARPU_COMPONENT_MUTEX_TRYLOCK(m) STARPU_PTHREAD_MUTEX_TRYLOCK((m))
+
 #define STARPU_COMPONENT_MUTEX_UNLOCK(m) STARPU_PTHREAD_MUTEX_UNLOCK((m))
 
 #ifdef __cplusplus