__sync_lock_release(lock);
return 0;
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return 0;
+}
#endif
/*!
x86chgl(lock, 0);
return 0;
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return 0;
+}
#endif
/*!
return 0;
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return 0;
+}
#endif
/*!
return 0;
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return 0;
+}
#endif
/*!
{
return pthread_spin_unlock(lock);
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return pthread_spin_destroy(lock);
+}
#endif
/*!
OSSpinLockUnlock(lock);
return 0;
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return 0;
+}
#endif
/*!
{
return pthread_mutex_unlock(lock);
}
+
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock)
+{
+ return pthread_mutex_destroy(lock);
+}
#endif
#if !defined(AST_SPINLOCK_TYPE)
*/
static force_inline int ast_spinlock_unlock(ast_spinlock_t *lock);
+/*!
+ * \brief Destroy a spin lock
+ * \param lock Address of the lock
+ * \retval 0 Success
+ * \retval other Failure
+ */
+static force_inline int ast_spinlock_destroy(ast_spinlock_t *lock);
+
#endif /* _ASTERISK_SPINLOCK_H */