MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / rt_spin_lock_init

Function rt_spin_lock_init

src/cpu_mp.c:47–50  ·  view source on GitHub ↗

* @brief Initialize a static spinlock object. * * @param lock is a pointer to the spinlock to initialize. * * @note This function has UP version and MP version. */

Source from the content-addressed store, hash-verified

45 * @note This function has UP version and MP version.
46 */
47void rt_spin_lock_init(struct rt_spinlock *lock)
48{
49 rt_hw_spin_lock_init(&lock->lock);
50}
51RTM_EXPORT(rt_spin_lock_init)
52
53/**

Callers

nothing calls this directly

Calls 1

rt_hw_spin_lock_initFunction · 0.50

Tested by

no test coverage detected