All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] rt_mutex_acquire returns -3
@ 2009-08-14  7:31 Hans Søndergaard (HSO)
  2009-08-14  8:26 ` Gilles Chanteperdrix
  2009-08-14  9:41 ` Philippe Gerum
  0 siblings, 2 replies; 7+ messages in thread
From: Hans Søndergaard (HSO) @ 2009-08-14  7:31 UTC (permalink / raw)
  To: xenomai@xenomai.org

[-- Attachment #1: Type: text/plain, Size: 640 bytes --]

I use objects of type:

typedef struct object {
  RT_MUTEX *rt_lock;
  ..
} Object;

int err = rt_mutex_create (ob->rt_lock, NULL);
printf ("[alloc.c]: rt_mutex_create err: %d; #%d \n", err, __LINE__);

err = rt_mutex_acquire (ob->rt_lock, TM_INFINITE);
printf ("[lock.c]: rt_mutex_acquire, err: %d; #%d \n", err, __LINE__);

On creation, rt_mutex_create returns 0 (as expected).
On acquiring, rt_mutex_acquire returns -3,
but this return value is not included among the possible return values in the documentation of Mutex services.

Could you please explain what this return value -3 means?

Best regards
Hans So



[-- Attachment #2: Type: text/html, Size: 4959 bytes --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2009-08-22 18:44 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-08-14  7:31 [Xenomai-help] rt_mutex_acquire returns -3 Hans Søndergaard (HSO)
2009-08-14  8:26 ` Gilles Chanteperdrix
     [not found]   ` <0AB95BFCF14F984980DE7149C21D6B90065D58B5EA@FND-MAILB03.VIA.DK>
2009-08-14  9:20     ` Gilles Chanteperdrix
2009-08-14  9:41 ` Philippe Gerum
2009-08-22  7:49   ` Hans Søndergaard (HSO)
2009-08-22 10:01     ` Gilles Chanteperdrix
2009-08-22 18:44       ` Hans Søndergaard (HSO)

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.