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

Conference varese::basestar_open

Title:BASEstar Open Multiplatform Application Framework
Notice:Kit pointers: see topic 3
Moderator:VARESE::CORBETTA
Created:Tue Oct 02 1990
Last Modified:Fri Jun 06 1997
Last Successful Update:Fri Jun 06 1997
Number of topics:607
Total number of notes:1971

576.0. "enboxes and other events" by UTROP1::KAMPHUIS_D () Wed Mar 12 1997 21:56

    Is it possible , when async. waiting for a enbox notification,
    to also wait for (async) other events , like VMS mailboxes ?
    An example would be highly appreciated.
    
    Dick Kamphuis @uto
    
    
T.RTitleUserPersonal
Name
DateLines
576.1noIMPERO::SERRAVolumeappalla!Thu Mar 13 1997 08:449
    
    No, with bstr_asynchronous_request_wait() one can wait for termination
    of one or more bstr *only* non-blocking pending request.
    
    It does not manage any non-bstr event, such as VMS QIOs, Unix sockets
    and so on.
    
    
    - Beppe -
576.2I think you could do it with threads.BASEX::EISENBRAUNJohn EisenbraunThu Mar 13 1997 13:5911
>    No, with bstr_asynchronous_request_wait() one can wait for termination
>    of one or more bstr *only* non-blocking pending request.
    
    But you could, in a threaded environment, have one thread waiting for a
    mailbox completion and another thread waiting for BASEstar events. 
    When the mailbox completes, the mailbox thread could generate an event
    for the BASEstar waiting thread.
    
    You would have to be careful in how you did your programming to follow
    all the thread rules, and I've never done it, but I don't see why it
    couldn't be done.
576.3thanksUTROP1::KAMPHUIS_DFri Mar 14 1997 17:2312
    Yes, when the customer mentioned this 'problem' , I suggested
    'threads' (... I am not a professional programmer) . 
    Customer however did not want to introduce those complexities, therefore
    he has a separate process that catches all the enbox messages and
    forwards these as mail.
    
    I posted the note to have customers opinion (=576.1) confirmed.
    
    Thanks,
    Dick