[Search for users] [Overall Top Noters] [List of all Conferences] [Download this site]

Conference azur::mcc

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

1337.0. "mcc_thread_create gets MCC_S_UNSUPP_OP" by EMASS::FLETCHER (Robin G. Fletcher, EIS drone) Wed Aug 14 1991 12:05

    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.RTitleUserPersonal
Name
DateLines
1337.1I suspect you need to use the `new' mcc_thread_create2 routineNANOVX::ROBERTSKeith Roberts - DECmcc Toolkit TeamWed Aug 14 1991 12:5716
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.2duck shots firedEMASS::FLETCHERRobin G. Fletcher, EIS droneThu Aug 15 1991 09:526
    Thanks Keith!
    
    I'll give it a shot....hopefully, we in the "combat zone" have the new
    routine.  : )
    
    Robin