/* Change Logs: Date Author Notes  Bernard the first version  */
int pthread_spin_init(pthread_spinlock_t *lock, int pshared)
/* Change Logs: Date Author Notes  Bernard the first version  */
int pthread_spin_init(pthread_spinlock_t *lock, int pshared)
{
    if (!lock)
        return EINVAL;
    lock->lock = 0;
    return 0;
}