Title: | DECmcc user notes file. Does not replace IPMT. |
Notice: | Use IPMT for problems. Newsletter location in note 6187 |
Moderator: | TAEC::BEROUD |
Created: | Mon Aug 21 1989 |
Last Modified: | Wed Jun 04 1997 |
Last Successful Update: | Fri Jun 06 1997 |
Number of topics: | 6497 |
Total number of notes: | 27359 |
I am attempting to create a thread in an Ultrix MCC environment and I am getting a return code of MCC_S_UNSUPP_OP (value 52876418). My call looks like the following. extern MCC_T_CVR mcc_timer_wait(); . . MCC_T_CVR MS_connect(); MCC_T_CVR status; MCC_T_CVR thread_status; MCC_T_Unsigned32 def_priority = 2; MCC_T_Unsigned32 def_stksiz = 10; MCC_T_Unsigned32 thread_vector[3]; typedef'd pointers passwd into routine ascpt,cudpt; . . status = mcc_thread_create( MS_connect, MCC_K_NULL_PTR, /* no optional thread name */ &def_priority, /* default priority */ &def_stksiz, /* default stack size */ &thread_vector[K_IO_THREAD_ID], ascpt, cudpt); Robin
T.R | Title | User | Personal Name | Date | Lines |
---|---|---|---|---|---|
1337.1 | I suspect you need to use the `new' mcc_thread_create2 routine | NANOVX::ROBERTS | Keith Roberts - DECmcc Toolkit Team | Wed Aug 14 1991 12:57 | 16 |
Robin, because on Ultrix (well, MIPS) we can't determine how many arguments are passed, there is a new thread create routine .. in which you specify how many arguments are to follow -- in this example, there are two. status = mcc_thread_create2( exlib_timer_wait, /* procedure that does wait */ MCC_K_NULL_PTR, /* no optional thread name */ &thread_priority, /* default priority */ &timer_stack, /* default stack size */ &thread_vector[K_TIMER_THREAD_ID], 2, /* 2 Arguments to follow */ integer_timeout, /* Integer Value */ p_mcc_timeout ); /* Bin-Rel-Time Value */ /keith | |||||
1337.2 | duck shots fired | EMASS::FLETCHER | Robin G. Fletcher, EIS drone | Thu Aug 15 1991 09:52 | 6 |
Thanks Keith! I'll give it a shot....hopefully, we in the "combat zone" have the new routine. : ) Robin |