speechd-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[PATCH 1/1] Add module_semaphore_free() to destroy semaphore...


From: Trevor Saunders
Subject: [PATCH 1/1] Add module_semaphore_free() to destroy semaphore...
Date: Wed, 7 Dec 2011 21:54:37 -0500

On Wed, Dec 07, 2011 at 11:48:54PM +0100, Andrei Kholodnyi wrote:
> 
> 
> 2011/12/7 Trevor Saunders <trev.saunders at gmail.com>
>      On Wed, Dec 07, 2011 at 07:35:56PM +0400, sub wrote:
>      > Add module_semaphore_free() to destroy semaphore, and release
>      allocated memory (see module_semaphore_init()).
> 
>      ?instead of all this you should just get rid of the dynamic
>      allocation
>      ?in the first place.
> ?
> you mean just to remove?module_semaphore_init completely and use?
> static sem_t my_sem;
> in the modules instead of
> static?sem_t *my_sem;

yup :)

trev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: 
<http://lists.freebsoft.org/pipermail/speechd/attachments/20111207/2355034e/attachment.pgp>


reply via email to

[Prev in Thread] Current Thread [Next in Thread]