rtems object name
Thomas Doerfler
Thomas.Doerfler at imd-systems.de
Wed Jan 12 21:10:23 UTC 2005
Philip,
AFAIK multiple RTEMS objects can have the same name. The only
drawback is, that you can no longer identify an object by its
unique name :-)
wkr,
Thomas.
> i'm currently porting SDL (www.libsdl.org) which include a framework for
> creating SDL tasks, which look like this
>
> int SDL_SYS_CreateThread(SDL_Thread *thread, void *args)
> {
> rtems_status_code status;
> /*create the task*/
> status = rtems_task_create(rtems_build_name( 'S', 'D', 'L', 'T' ),
> 1,
> RTEMS_MINIMUM_STACK_SIZE * 4,
> RTEMS_DEFAULT_MODES,
> RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,
> &thread->handle
> );
> if ( status ) {
> SDL_SetError("Couldn't initialize thread");
> return(-1);
> }
>
> /*start the task*/
> status = rtems_task_start ( thread->handle, RunThread,(rtems_task_argument) args);
> if ( status != 0 ) {
> SDL_SetError("Not enough resources to create thread");
> return(-1);
> }
> return(0);
> }
>
> ofcourse i dont know how many SDL_Thread will be created by the
> application using SDL...
> so, my question is,can differents object share a common name?
>
> Philippe
--------------------------------------------
IMD Ingenieurbuero fuer Microcomputertechnik
Thomas Doerfler Herbststrasse 8
D-82178 Puchheim Germany
email: Thomas.Doerfler at imd-systems.de
PGP public key available at: http://www.imd-
systems.de/pgp_keys.htm
More information about the users
mailing list