Simpler Navigation for Servers and Operating Systems - Please Update Your Bookmarks
Completed: a much simpler Servers and Operating Systems section of the Community. We combined many of the older boards, so you won't have to click through so many levels to get at the information you need. Check the consolidated boards here as many sub-forums are now single boards.
If you have bookmarked forums or discussion boards in Servers and Operating Systems, we suggest you check and update them as needed.
Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Pascal & pthreads

SOLVED
Go to solution

Pascal & pthreads

Is there an interface to pthreads from Pascal on I64.
Currently our application uses cma threads running on the Alpha and I would like to change this to the standard pthreads interface when I port to the Itanium (and also to run back on the Alpha so I only have to maintain one code set)
Thanks.
8 REPLIES
Ian Miller.
Honored Contributor

Re: Pascal & pthreads

I guess the issue is the definitions - a pascal version of pthread.h - is this correct?
____________________
Purely Personal Opinion
Ian Miller.
Honored Contributor

Re: Pascal & pthreads

here
http://h71000.www7.hp.com/doc/73final/6493/6101pro_001.html#index_x_44
it says you can call the pthreads library from other languages but you have to roll your own equivilent to pthread.h
____________________
Purely Personal Opinion

Re: Pascal & pthreads

Do you know if anybody has created a pthreads definition file for VMS PASCAL - I don't know how to do it. Do you take the pthreads.h and convert it to PASCAL and work out how each type needs to passed?
Brian Reiter
Valued Contributor
Solution

Re: Pascal & pthreads

Hi Richard,

It should be straightforward to construct the pthreads interface using similar conventions to those in SYS$LIBRARY:STARLET.PAS and SYS$LIBRARY:PASCAL$CMA_ROUTINES.PAS. Base it on the C headers and do a 1 for 1 conversion.

I'll have a look and see if we have any headers for pthread routines in house.

cheers

Brian

Re: Pascal & pthreads

Thanks, I'll give it a go - but if you have anything you could send me to help that would be great, richard dot apthorp at iptest dot com
Jan van den Ende
Honored Contributor

Re: Pascal & pthreads

Richard, (and everybody else)

please do _NOT_ use plain e-mail addresses in your postings!

Mutilate them in a way that human readers will simply re-construct them, while making it hard for automatons to recognise!!
Mainly it is (alas!) a necessary means of self-protection.

Proost.

Have one on me.

Jan
Don't rust yours pelled jacker to fine doll missed aches.
Brian Reiter
Valued Contributor

Re: Pascal & pthreads

Richard

Don't know how complete this. I've sanitised any potential condifdential info. The system using this code is live and quite likely somewhere near you.


Highlighted

Re: Pascal & pthreads

Thats exactly what I need, thanks - I'm curious now to know what is running it, any more clues?