From: awdorrin <awdorrin@gmail.com>
Subject: POSIX.Semaphores question
Date: Fri, 2 Dec 2011 07:43:01 -0800 (PST)
Date: 2011-12-02T07:43:01-08:00 [thread overview]
Message-ID: <a24b6635-6820-4c1b-8e2b-67dc90900159@f35g2000yqm.googlegroups.com> (raw)
I'm using the Florist POSIX Libraries and have code that is similar to
the following:
In the spec file:
Sem_READY : Semaphore;
READY : Semaphore_Descriptor;
pragma Export( Ada, READY, "ready");
Then in my body:
POSIX.Semaphores.Initialize( Sem_READY, 1);
READY := POSIX.Semaphores.Descriptor_Of( Sem_READY );
When executed, READY is always set to null.
If I run the code through GDB and print READY, it always displays 0x0.
However, if I call POSIX.Semaphores.Descriptor_Of( Sem_Ready )
I get the right address returned: (access posix.c.sem_t) 0x8321540
I have no idea why the assignment is failing and not generating an
exception....
next reply other threads:[~2011-12-02 15:44 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-12-02 15:43 awdorrin [this message]
2011-12-02 16:54 ` POSIX.Semaphores question awdorrin
2011-12-02 17:06 ` Georg Bauhaus
2011-12-02 17:09 ` Georg Bauhaus
2011-12-02 17:22 ` awdorrin
2011-12-03 16:32 ` awdorrin
2011-12-03 19:59 ` Niklas Holsti
2011-12-05 12:25 ` awdorrin
2011-12-05 14:19 ` Georg Bauhaus
2011-12-05 16:58 ` awdorrin
2011-12-05 17:59 ` Simon Wright
2011-12-06 0:53 ` awdorrin
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox