TMonitor Scheduler deadlock

Home Forums kbmMW TMonitor Scheduler deadlock

Viewing 2 reply threads
  • Author
    Posts
    • #56556
      Babis Michael
      Participant

      Hello,

      I’m using TMonitor as a lock in kbmmw and i had deadlock problems when i terminated the app.
      I found the reason was FLock.BeginWrite; in the TkbmMWScheduledEvent.Terminate
      I commented the FLock Begin/Endwrite without problems so far. (the app terminates fine)

      Also TkbmMWCustomThread.InitializeThread does locking (FLock.BeginWrite) while
      in TkbmMWCustomThread.FinalizeThread is commented.

      IOW, is there a reason for the locks because as i see the code for the above 3 procedure it isn’t needed. (i might been wrong)

      Thank you

      • This topic was modified 3 years, 5 months ago by Babis Michael.
    • #56558
      Babis Michael
      Participant

      Dah! Reverting back to kbmMW locking … I dunno if this a TMonitor issue or kbmMW!

    • #56566
      kimbomadsen
      Keymaster

      TkbmMWScheduledEvent.Terminate contains locking to prevent the scheduled event being executed or being scheduled for execution if it is about to be terminated vs. termination setting awaits execution finishing.

      /Kim/C4D

Viewing 2 reply threads
  • You must be logged in to reply to this topic.