Re: [PATCH] Rename DECLARE_MUTEX to DEFINE_SEMAPHORE

From: Peter Zijlstra
Date: Sun Oct 26 2008 - 09:39:24 EST


On Sun, 2008-10-26 at 13:06 +0100, Marcin Slusarz wrote:
> DECLARE_MUTEX is doubly misleading name (it actually _defines_ struct
> _semaphore_ initialized to 1) and it can be confused with DEFINE_MUTEX
> (which defines real struct mutex). Rename it.

I'd prefer DEFINE_BINARY_SEM or somesuch

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/