|
MP-Gadget
5.0.1.dev1-76bc7d4726-dirty
|
Go to the source code of this file.
Classes | |
| struct | SpinLocks |
Functions | |
| void | lock_spinlock (int i, struct SpinLocks *spin) |
| void | unlock_spinlock (int i, struct SpinLocks *spin) |
| int | try_lock_spinlock (int i, struct SpinLocks *spin) |
| struct SpinLocks * | init_spinlocks (int NumLock) |
| void | free_spinlocks (struct SpinLocks *spin) |
Variables | |
| static struct SpinLocks | spin |
| void free_spinlocks | ( | struct SpinLocks * | spin | ) |
Definition at line 70 of file spinlocks.c.
References myfree, SpinLocks::NumSpinLock, spin, and SpinLocks::SpinLocks.
Referenced by fof_label_primary(), and metal_return().
| struct SpinLocks* init_spinlocks | ( | int | NumLock | ) |
Definition at line 49 of file spinlocks.c.
References mymalloc, SpinLocks::NumSpinLock, spin, and SpinLocks::SpinLocks.
Referenced by fof_label_primary(), and metal_return().
| void lock_spinlock | ( | int | i, |
| struct SpinLocks * | spin | ||
| ) |
Definition at line 23 of file spinlocks.c.
References spin, and SpinLocks::SpinLocks.
Referenced by fof_label_primary(), fof_primary_ngbiter(), fofp_merge(), and metal_return_ngbiter().
| int try_lock_spinlock | ( | int | i, |
| struct SpinLocks * | spin | ||
| ) |
Definition at line 38 of file spinlocks.c.
References spin, and SpinLocks::SpinLocks.
| void unlock_spinlock | ( | int | i, |
| struct SpinLocks * | spin | ||
| ) |
Definition at line 30 of file spinlocks.c.
References spin, and SpinLocks::SpinLocks.
Referenced by fof_label_primary(), fof_primary_ngbiter(), fofp_merge(), and metal_return_ngbiter().
|
static |
Definition at line 1 of file spinlocks.c.
Referenced by fof_label_primary(), fof_primary_ngbiter(), fofp_merge(), free_spinlocks(), init_spinlocks(), lock_spinlock(), try_lock_spinlock(), and unlock_spinlock().