Re: pragma importing sem_init gives me a segmentation fault



laforge2001@xxxxxxxxx writes:

We are actually trying to convert from an SGI platform to a Linux
based platform, so all the previous semaphore calls were SGI
specific and we were looking to move to POSIX based semaphores. Does
anyone have any ideas how to go about this ?

It might be better to redesign the program to use Ada protected types
rather than OS semaphores.

--
-- Stephe
.



Relevant Pages

  • Re: pragma importing sem_init gives me a segmentation fault
    ... POSIX semaphores by pragma importing sem_init, sem_post, sem_wait, ... previous semaphore calls were SGI specific and we were looking to move ... There is a package available for GNAT called florist. ...
    (comp.lang.ada)
  • POSIX semaphores in JNI?
    ... Can POSIX semaphores be used in Java 1.4.2 JNI code? ... Is it OK to use POSIX recursive semaphores to control threading? ...
    (comp.lang.java.programmer)
  • Re: POSIX semaphores in JNI?
    ... > rendering library that is I/O, memory, and CPU intensive. ... Are the vxWorks semaphores posix compliant? ... > Is it OK to use POSIX recursive semaphores to control threading? ...
    (comp.lang.java.programmer)
  • Re: process safe communication
    ... My first task is to port a queue ... > System V (named semaphores, ... > My goal is to use POSIX as I see that as the most high level and easy ...
    (comp.unix.programmer)
  • Re: Fixing Posix semaphores
    ... >> the semaphores directly in the file system, ... my only experience with POSIX semaphores on a system other than ... portable programs should only depend on a flat namespace, ...
    (freebsd-current)