Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/tools/virtio/linux/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 935 B image not shown  

Quelle  spinlock.h   Sprache: C

 
#ifndef SPINLOCK_H_STUB
#define SPINLOCK_H_STUB

#include <pthread.h>

typedef pthread_spinlock_t  spinlock_t;

static inline void spin_lock_init(spinlock_t *lock)
{
 int r = pthread_spin_init(lock, 0);
 assert(!r);
}

static inline void spin_lock(spinlock_t *lock)
{
 int ret = pthread_spin_lock(lock);
 assert(!ret);
}

static inline void spin_unlock(spinlock_t *lock)
{
 int ret = pthread_spin_unlock(lock);
 assert(!ret);
}

static inline void spin_lock_bh(spinlock_t *lock)
{
 spin_lock(lock);
}

static inline void spin_unlock_bh(spinlock_t *lock)
{
 spin_unlock(lock);
}

static inline void spin_lock_irq(spinlock_t *lock)
{
 spin_lock(lock);
}

static inline void spin_unlock_irq(spinlock_t *lock)
{
 spin_unlock(lock);
}

static inline void spin_lock_irqsave(spinlock_t *lock, unsigned long f)
{
 spin_lock(lock);
}

static inline void spin_unlock_irqrestore(spinlock_t *lock, unsigned long f)
{
 spin_unlock(lock);
}

#endif

Messung V0.5
C=93 H=94 G=93

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.