[PATCH] posix: Reimplement POSIX Key manager to use a red-black tree.

Ashi ashi08104 at gmail.com
Sun Jul 28 15:55:08 UTC 2013


I'm updating this patch this days, but get stuck with several problems:

  - when key deleting, should we just put the deleted node back to
freechain or run workspace_free on these deleted nodes?

  - my current code (at:
https://github.com/ashi08104/rtems/tree/one_rbtree_add_fl) can't pass the
unlimited test cases (psxkey07 and psxkey08). I tried to debug it, but
still with no success until now. one interesting thing is when I change
following line in psxkey07/init.c:

#define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(5)

to:

#define CONFIGURE_MAXIMUM_POSIX_THREADS  rtems_resource_unlimited(4)

then, this test case will be OK. And change to different number of
rtems_resource_unlimited() would lead to different errors.
Could anyone give me some hints about this? If necessary, I can provide
more details. Thanks!

--Zhongwei
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/devel/attachments/20130728/3bebcefb/attachment-0001.html>


More information about the devel mailing list