[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

572.0. "Is mcc_call_access() available during the PROBE ?" by PHONE::HUET () Thu Dec 20 1990 10:01

    I have written my own AM. In the hierarchy of the objects supported by
    this AM I have only one instance of the Global Entity.
    
    So, as it is created for ever, I create it during the PROBE routine
    right after the creation of the instance and attributes MIR.
    
    I do it by calling the entry point of the creation of Global Entity
    included in my AM :
    
    		status = mcc_call_access(&MCC_K_VERB_CREATE,...)
    
    It returns me the following error :
    %MCC_W_IVLOCKCONV, invalid lock conversion (!XL)
    
    Is it because I call a directive of the AM which I am enrolling ?
    Are the entry points of the directives not yet available at the PROBE
    level during the enrollment ?
    
    Thanx in advance for your help.
    
    Best regards,
    
    - Stephane-Andre.
T.RTitleUserPersonal
Name
DateLines
572.1No, nor during INIT or LOGTOOK::T_HUPPERNeed inputFri Jan 04 1991 15:0616
    This behavior is a restriction caused by the dispatch synchronization
    implementation.  Your mcc_call_access from within the PROBE routine is
    causing the dispatch lock (hidden within the kernel) to be locked twice
    (1st time to perform the PROBE, 2nd time to perform the
    mcc_call_access) with no unlock in between.  The 2nd locking is
    failing, so the mcc_call_access does not occur.
    
    This is a restriction on the use of any mcc_calls from within the INIT,
    PROBE, or LOG routines, not just ones that access the MM where the
    problem occurs.
    
    Your global entity can be created either manually after the enrollment,
    or by a command file which performs the enrollment, then creates the
    global entity.
    
    - Ted Hupper