User: Password:
Subscribe / Log in / New account

Why not both?

Why not both?

Posted Dec 15, 2005 18:23 UTC (Thu) by Ross (guest, #4065)
Parent article: Reworking the semaphore interface

People can have their flag day and also have clearer function names.

Specifically, get rid of up() and down() (those names are too short anyway).

Force all users to either move to sem_up() and sem_down() or sleep_lock() and sleep_unlock(). The advantage (in addition to clarity) is that you will be able to tell old uses of up() and down() from new ones. As code is converted it will be clear which set of functions is intended to be used and code which has not been converted will also be easy to identify.

(Log in to post comments)

Why not both?

Posted Dec 20, 2005 11:36 UTC (Tue) by arafel (guest, #18557) [Link]

Too short? Short can be good. :-)

Must admit I prefer something like mutex_take and mutex_release rather than the sleep_lock names, but it's only a name...

Copyright © 2018, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds