forked from Imagelibrary/rtems
Unlimited objects support for POSIX keys
This patch enables unlimited model in POSIX key manger and have a decent runtime on POSIX key searching, adding and deleting operations. Memory overhead is lower than current implementation when the size of key and key value becomes big.
This commit is contained in:
committed by
Sebastian Huber
parent
5a556e4ea8
commit
b5c906429f
@@ -43,10 +43,10 @@ void *POSIX_Init(
|
||||
|
||||
rtems_workspace_greedy_allocate( NULL, 0 );
|
||||
|
||||
puts("Init: pthread_key_create - ENOMEM (Workspace not available)");
|
||||
puts("Init: pthread_key_create - OK");
|
||||
empty_line();
|
||||
status = pthread_key_create( &Key_id[0], Key_destructor );
|
||||
fatal_directive_check_status_only( status, ENOMEM, "no workspace available" );
|
||||
fatal_directive_check_status_only( status, 0, "OK" );
|
||||
|
||||
puts( "*** END OF POSIX KEY 01 TEST ***" );
|
||||
rtems_test_exit( 0 );
|
||||
|
||||
Reference in New Issue
Block a user