Skip to contentSkip to conversation

more on registry stuff

Xenomai-help Steven Seeger 2 participants 3 messages Oct 12, 2005

lore
Share & tools
lore
#0 lore raw

My app always creates a set of mutexes with the same name. I do this when creating them:

    if(name&&!rt_mutex_bind(&_m, name, TM_NONBLOCK))

assert(!rt_mutex_delete(&_m));

This way, if it already exists, I delete it. Then I create it again.

They do not seem to delete. In fact, I see some duplicate names in /proc/registry/mutex

Steven

#1 lore raw
Quoted 12 lines · Steven Seeger

My app always creates a set of mutexes with the same name. I do this when creating them:

    if(name&&!rt_mutex_bind(&_m, name, TM_NONBLOCK))

assert(!rt_mutex_delete(&_m));

This way, if it already exists, I delete it. Then I create it again.

They do not seem to delete. In fact, I see some duplicate names in /proc/registry/mutex

Any /proc output to get more details?

Quoted 8 lines

Steven

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help

Signature · 1 line
Philippe.
#2 lore raw

Well, last time it occurred I just did a ls /proc/xenomai/registry/mutexes

I saw a two names of each mutex. I didn't look at any other stats. Next time it occurs I'll do that.

Steven

Quoted 25 lines · Philippe Gerum
Quoted 12 lines · Steven Seeger

My app always creates a set of mutexes with the same name. I do this when creating them:

    if(name&&!rt_mutex_bind(&_m, name, TM_NONBLOCK))

assert(!rt_mutex_delete(&_m));

This way, if it already exists, I delete it. Then I create it again.

They do not seem to delete. In fact, I see some duplicate names in /proc/registry/mutex

Any /proc output to get more details?

Quoted 8 lines

Steven

_______________________________________________
Xenomai-help mailing list
[email protected]
https://mail.gna.org/listinfo/xenomai-help