exitcontext of waithandle.waitany.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • archana

    exitcontext of waithandle.waitany.

    Hi all,

    can anyone tell me exact meaning of exitcontext of waithandle.wait any.
    What exactly synchronization domain means?

    i am having one windows application in which i creating some thread
    and waiting for anyone to complete.

    so what value should i set for exitcontext and why?

    please help me asap.

    thanks in advance.

  • bruce barker

    #2
    Re: exitcontext of waithandle.wait any.

    this has impact if your calling class supports ContextBoundObj ect. the
    flag indicates whether the context your class is bound to is released
    while waiting for the mutex.

    for example, if the context is an apartment model, your class may need
    to leave it so that the other thread may access the apartment.


    -- bruce (sqlwork.com)



    archana wrote:
    Hi all,
    >
    can anyone tell me exact meaning of exitcontext of waithandle.wait any.
    What exactly synchronization domain means?
    >
    i am having one windows application in which i creating some thread
    and waiting for anyone to complete.
    >
    so what value should i set for exitcontext and why?
    >
    please help me asap.
    >
    thanks in advance.
    >

    Comment

    Working...