History log of /openbsd-current/lib/librthread/rthread_spin_lock.c
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 1.5 06-Apr-2020 pirofti

Update my email address.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE OPENBSD_6_3_BASE OPENBSD_6_4_BASE OPENBSD_6_5_BASE OPENBSD_6_6_BASE
# 1.4 04-Sep-2016 akfaew

Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".

ok tedu@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 01-Jun-2013 tedu

cleanup and consolidate the spinlock_lock (what a name!) code.
it's now atomic_lock to better reflect its usage, and librthread now
features a new spinlock that's really a ticket lock.
thrlseep can handle both types of lock via a flag in the clock arg.
(temp back compat hack)
remove some old stuff that's accumulated along the way and no longer used.
some feedback from dlg, who is concerned with all things ticket lock.
(you need to boot a new kernel before installing librthread)


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.2 06-May-2012 pirofti

Style nits from Brad.


# 1.1 03-May-2012 pirofti

Add pthread spinlock support.

Implementation, documentation and naive regression tests for:
- pthread_spin_init()
- pthread_spin_destroy()
- pthread_spin_lock()
- pthread_spin_trylock()
- pthread_spin_unlock()

Implementation okay guenther@, documentation okay jmc@.


Revision tags: OPENBSD_6_1_BASE OPENBSD_6_2_BASE
# 1.4 04-Sep-2016 akfaew

Get rid of ticket support, replace "struct _spinlock" with "_atomic_lock_t".

ok tedu@


Revision tags: OPENBSD_5_4_BASE OPENBSD_5_5_BASE OPENBSD_5_6_BASE OPENBSD_5_7_BASE OPENBSD_5_8_BASE OPENBSD_5_9_BASE OPENBSD_6_0_BASE
# 1.3 01-Jun-2013 tedu

cleanup and consolidate the spinlock_lock (what a name!) code.
it's now atomic_lock to better reflect its usage, and librthread now
features a new spinlock that's really a ticket lock.
thrlseep can handle both types of lock via a flag in the clock arg.
(temp back compat hack)
remove some old stuff that's accumulated along the way and no longer used.
some feedback from dlg, who is concerned with all things ticket lock.
(you need to boot a new kernel before installing librthread)


Revision tags: OPENBSD_5_2_BASE OPENBSD_5_3_BASE
# 1.2 06-May-2012 pirofti

Style nits from Brad.


# 1.1 03-May-2012 pirofti

Add pthread spinlock support.

Implementation, documentation and naive regression tests for:
- pthread_spin_init()
- pthread_spin_destroy()
- pthread_spin_lock()
- pthread_spin_trylock()
- pthread_spin_unlock()

Implementation okay guenther@, documentation okay jmc@.