T.R | Title | User | Personal Name | Date | Lines |
---|
1861.1 | It depends | DECC::AMARTIN | Alan H. Martin | Wed Mar 30 1994 12:52 | 22 |
1861.2 | I see. | EST::KENNELL | Things go better with Bach | Wed Mar 30 1994 16:11 | 47 |
1861.3 | Setting expectations | DECC::AMARTIN | Alan H. Martin | Wed Mar 30 1994 18:20 | 5 |
1861.4 | | BOOKND::kennell | Things go better with Bach | Thu Mar 31 1994 17:20 | 3 |
1861.5 | What about system calls that don't have prototypes? | LEDER1::PETTENGILL | mulp | Tue May 03 1994 20:42 | 21 |
1861.6 | @ | DECC::AMARTIN | Alan H. Martin | Wed May 04 1994 09:10 | 8 |
1861.7 | in C but not CXX? | CHOVAX::LEVINE | | Wed May 11 1994 17:39 | 22 |
1861.8 | see also 1891.1 | DECC::MULLEN | Dan Mullen, DEC C/C++ | Thu May 12 1994 10:48 | 14 |
1861.9 | All the answers you need | DECC::AMARTIN | Alan H. Martin | Thu May 12 1994 16:10 | 33 |
1861.10 | Additional information | DECC::AMARTIN | Alan H. Martin | Thu Jun 02 1994 12:01 | 22 |
1861.11 | Compilation failure on X3.0-10 | UKARC1::ELANGCO | | Mon Jun 06 1994 06:52 | 35 |
1861.12 | @ | DECC::AMARTIN | Alan H. Martin | Mon Jun 06 1994 08:24 | 6 |
1861.13 | CXX problem with signal.h include file in V1.3B / OSF/1 V3.0? | ZUR01::SUTTER | Who are you ??? - I'm BATMAN !!! | Fri Oct 21 1994 13:37 | 21 |
1861.14 | @ | DECCXX::AMARTIN | Alan H. Martin | Fri Oct 21 1994 16:46 | 4 |
1861.15 | | ZUR01::SUTTER | Who are you ??? - I'm BATMAN !!! | Sat Oct 22 1994 06:38 | 2 |
1861.16 | Problem with <signal.h> version dependent? | SUBPAC::FARICELLI | | Mon Oct 24 1994 08:29 | 7 |
1861.17 | multiply defined symbols due to inclusion of sys/proc.h | SSPADE::SHAMIM | | Thu Dec 01 1994 10:31 | 108 |
1861.18 | @ | DECCXX::AMARTIN | Alan H. Martin | Tue Dec 06 1994 17:38 | 4 |
1861.19 | | SSPADE::SHAMIM | | Wed Dec 07 1994 09:21 | 5 |
1861.20 | signal.h still a problem in V3.0B OSF/1 | TOOK::MCCROSSAN | | Wed Jan 18 1995 13:17 | 23 |
1861.21 | A simple C file confuses cxx? | PEACHS::MURPHY | Chris Murphy, Application Support- CSC/AT, DTN 343-0120 | Fri Jan 20 1995 18:22 | 27 |
1861.22 | @ | DECCXX::AMARTIN | Alan H. Martin | Sat Jan 21 1995 15:54 | 4 |
1861.23 | PDBDEF and cantcomplete errors | CX3PST::WSC500::C_HEISLER | Chris Heisler, Colorado Springs | Mon Aug 28 1995 14:01 | 45 |
1861.24 | | RTL::COWAN | Ken, TLG | Mon Aug 28 1995 14:34 | 6 |
1861.25 | Ok | CX3PST::WSC500::C_HEISLER | Chris Heisler, Colorado Springs | Mon Aug 28 1995 15:24 | 5 |
1861.26 | | CSC64::BLAYLOCK | If at first you doubt,doubt again. | Thu Nov 09 1995 12:16 | 18 |
1861.27 | Typo in include file? | COMICS::LAWSONI | | Fri Jul 26 1996 12:12 | 23 |
1861.28 | @ | DECCXX::AMARTIN | Alan H. Martin | Fri Jul 26 1996 12:24 | 4 |
1861.29 | | CSC64::BLAYLOCK | If at first you doubt,doubt again. | Tue Aug 20 1996 18:17 | 12 |
1861.30 | Answer to .29 | DECCXX::MITCHELL | | Wed Aug 21 1996 12:02 | 5 |
1861.31 | header will be fixed | DECC::KIMMEL | | Wed Aug 21 1996 12:55 | 6 |
1861.36 | QAR 52043 in OSF_QAR | RDGENG::CHAMBERLIN | Danger! Do not Reverse Polarity | Tue Mar 18 1997 06:20 | 0 |
1861.37 | pthread_attr_create()/pthread_setprio() | MIASYS::CURRIER | Matt DTN 381-2595 | Fri May 23 1997 15:43 | 86 |
|
Hi,
I'm placing the following note on behalf of Dave Collins.
Matt
-------------------------
We have been having problems at a customer site using UNIX 4.0b and
C++ 5.50. The customer was attempting to port from a HP-RT platform
to Digital UNIX and the base code include calls to:
pthread_attr_create() and
pthread_setprio()
These calls are documented in older Digital documentation that
referenced POSIX 1003.4a, but do not show up (no forward declarations)
in Digital 4.0 UNIX referencing POSIX 1003.1c.
Q: Why does the older UNIX have a "higher" posix number?
The following trivial code example compiles if pthread.h is used
in place of pthread_exc.h. Do we need to specify some POSIX defines
to make this work. The include files that the customer is referencing
have a problem when trying to use pthread_exc.h
#include <pthread_exc.h>
#include <sys/types.h>
#include <timers.h>
The reason the customer is attemptng to use pthread_exc.h is to
use the two functions "pthread_attr_create & pthread_setprio"
#include <pthread.h>
// #include <pthread_exc.h>
#include <sys/types.h>
#include <timers.h>
#include <stdio.h>
#include <stdlib.h>
int ii;
void *start_routine (void * arg)
{
int *parg;
parg = (int *) (arg);
for (ii = 0; ii<*parg; ii++)
{
if (ii > 9999)
break;
}
printf ("\n Thread ii = %d\n", ii);
pthread_exit((void *) (&ii));
return (void *) (NULL);
}
main()
{
pthread_t thread1;
int arg = 1256;
int ret = 55;
int *pi;
pi = &ret;
pthread_create (&thread1, NULL, &start_routine, (void *) (&arg));
pthread_join(thread1, (void **) &pi);
printf("\n Thread returned %d \n", *pi);
exit(1);
}
--------------------------------------------------
Thanks,
Dave Collins
[email protected]
|
1861.38 | @ | DECCXX::AMARTIN | Alan H. Martin | Fri May 23 1997 17:01 | 4 |
| Re .37:
DECthreads issues are addressed in the DECthreads conference: CLT::CMA (q.v.).
/AHM
|