Skip to content
Snippets Groups Projects
  • Nat Goodspeed's avatar
    0c32c98f
    SL-793: Add LLEventPumps::clear() method to disconnect all listeners. · 0c32c98f
    Nat Goodspeed authored
    This is like the existing reset() method, except that reset() is specifically
    intended for shutdown: it disables every existing LLEventPump in such a way
    that it cannot be subsequently reused. (The original idea was to disconnect
    listeners in DLLs unloaded at shutdown.)
    
    clear() forcibly disconnects all existing listeners, but leaves LLEventPumps
    ready for reuse. This is useful (e.g.) for test programs to reset the state of
    LLEventPumps between individual test functions.
    0c32c98f
    History
    SL-793: Add LLEventPumps::clear() method to disconnect all listeners.
    Nat Goodspeed authored
    This is like the existing reset() method, except that reset() is specifically
    intended for shutdown: it disables every existing LLEventPump in such a way
    that it cannot be subsequently reused. (The original idea was to disconnect
    listeners in DLLs unloaded at shutdown.)
    
    clear() forcibly disconnects all existing listeners, but leaves LLEventPumps
    ready for reuse. This is useful (e.g.) for test programs to reset the state of
    LLEventPumps between individual test functions.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.