* [Xenomai-help] more on registry stuff
@ 2005-10-12 14:37 Steven Seeger
2005-10-12 14:42 ` Philippe Gerum
0 siblings, 1 reply; 3+ messages in thread
From: Steven Seeger @ 2005-10-12 14:37 UTC (permalink / raw)
To: xenomai@xenomai.org
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] more on registry stuff
2005-10-12 14:37 [Xenomai-help] more on registry stuff Steven Seeger
@ 2005-10-12 14:42 ` Philippe Gerum
2005-10-12 14:45 ` Steven Seeger
0 siblings, 1 reply; 3+ messages in thread
From: Philippe Gerum @ 2005-10-12 14:42 UTC (permalink / raw)
To: Steven Seeger; +Cc: xenomai@xenomai.org
Steven Seeger wrote:
> 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?
> Steven
>
>
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
>
--
Philippe.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Xenomai-help] more on registry stuff
2005-10-12 14:42 ` Philippe Gerum
@ 2005-10-12 14:45 ` Steven Seeger
0 siblings, 0 replies; 3+ messages in thread
From: Steven Seeger @ 2005-10-12 14:45 UTC (permalink / raw)
To: Philippe Gerum; +Cc: xenomai@xenomai.org
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
On 10/12/05 7:42 AM, "Philippe Gerum" <rpm@xenomai.org> wrote:
> Steven Seeger wrote:
>> 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?
>
>> Steven
>>
>>
>> _______________________________________________
>> Xenomai-help mailing list
>> Xenomai-help@domain.hid
>> https://mail.gna.org/listinfo/xenomai-help
>>
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2005-10-12 14:45 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-10-12 14:37 [Xenomai-help] more on registry stuff Steven Seeger
2005-10-12 14:42 ` Philippe Gerum
2005-10-12 14:45 ` Steven Seeger
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.