[PATCH] posix: Reimplement POSIX Key manager to use a red-black tree.
Sebastian Huber
sebastian.huber at embedded-brains.de
Mon Jul 29 07:05:47 UTC 2013
On 2013-07-28 17:31, Ashi wrote:
>
>
>
> On Fri, Jul 26, 2013 at 9:11 PM, Sebastian Huber
> <sebastian.huber at embedded-brains.de
> <mailto:sebastian.huber at embedded-brains.de>> wrote:
>
> On 2013-07-06 09:17, Ashi wrote:
>
> @@ -51,7 +49,8 @@ int pthread_key_delete(
> * of the application to free the memory.
> */
> _POSIX_Keys_Free( the_key );
> - _Objects_Put( &the_key->Object );
> + _Objects_Close( &_POSIX_Keys_Information, &the_key->Object );
> + _Thread_Enable_dispatch();
>
>
> Please use _Objects_Put() here instead of the _Thread_Enable_dispatch().
>
> Hi, Sebastain, what's the difference between these 2 ways?
This _Objects_Put() was introduced to obtain a _Objects_Get/Put pair which may
do different things depending on single processor vs. SMP configuration.
--
Sebastian Huber, embedded brains GmbH
Address : Dornierstr. 4, D-82178 Puchheim, Germany
Phone : +49 89 189 47 41-16
Fax : +49 89 189 47 41-09
E-Mail : sebastian.huber at embedded-brains.de
PGP : Public key available on request.
Diese Nachricht ist keine geschäftliche Mitteilung im Sinne des EHUG.
More information about the devel
mailing list