Pop-Up Thingie

>>> Magnum BBS <<<
  • Home
  • Forum
  • Files
  • Log in

  1. Forum
  2. Usenet
  3. COMP.SOFT-SYS.ACE
  • Thread_Timer_Queue_Test - timer cancellation

    From [email protected]@21:1/5 to All on Mon Feb 13 02:06:04 2017
    Hi,
    reading the code of Thread_Timer_Queue_Test I can not find the deallocation of the Handler object if the timer is canceled.

    I understand:

    - Input_Task::add_timer() allocates a Handler and gives the Handler* pointer to Thread_Timer_Queue by calling its Thread_Timer_Queue::schedule() method

    - in case of timer expiration Handler::handle_timeout() hook is called and the Handler is deleted

    - in case of timer cancellation Thread_Timer_Queue::cancel() will be called.

    I do *not* understand how Handler is deleted if Thread_Timer_Queue::cancel() is called before timer expiration.

    Thank you: Gabor

    PS:
    I am referencing the following sources: http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/examples/Timer_Queue/Thread_Timer_Queue_Test.h
    http://www.dre.vanderbilt.edu/~schmidt/DOC_ROOT/ACE/examples/Timer_Queue/Thread_Timer_Queue_Test.cpp

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • Who's Online

  • Recent Visitors

    • Amstrad Ppc
      Sat Oct 31 17:11:55 2026
      from Wiltshire via Telnet
    • Ashenfieldx
      Sat Oct 31 16:47:35 2026
      from Guelph, Ontario via Telnet
    • Amstrad Ppc
      Sat Oct 31 16:34:27 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:21:38 2026
      from Wiltshire via Telnet
    • Amstrad Ppc
      Sat Oct 31 15:13:22 2026
      from Wiltshire via SSH
    • Amstrad Ppc
      Sat Oct 31 13:42:25 2026
      from Wiltshire via SSH
    • Root Cellar
      Sat Oct 31 12:26:17 2026
      from 505 via Telnet
    • Rixter
      Sat Oct 31 11:01:35 2026
      from Madison, Nc via Telnet
  • System Info

    Sysop: Keyop
    Location: Huddersfield, West Yorkshire, UK
    Users: 796
    Nodes: 16 (3 / 13)
    Uptime: 148:28:32
    Calls: 13,190
    Calls today: 13
    Files: 15,483
    Messages: 6,579,238
    Posted today: 2

© >>> Magnum BBS <<<, 2026