Bläddra i källkod

make sure function is always inlined

Mike Frysinger 19 år sedan
förälder
incheckning
5f6104b428
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      libpthread/linuxthreads/spinlock.h

+ 1 - 1
libpthread/linuxthreads/spinlock.h

@@ -196,7 +196,7 @@ static inline long atomic_decrement(struct pthread_atomic *pa)
 }
 }
 
 
 
 
-static inline void
+static inline __attribute__((always_inline)) void
 __pthread_set_own_extricate_if (pthread_descr self, pthread_extricate_if *peif)
 __pthread_set_own_extricate_if (pthread_descr self, pthread_extricate_if *peif)
 {
 {
   /* Only store a non-null peif if the thread has cancellation enabled.
   /* Only store a non-null peif if the thread has cancellation enabled.