Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Transition sometimes not firing in multithread situation
Forum Updated to NodeBB v4.3 + New Features

Transition sometimes not firing in multithread situation

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 250 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Alain38
    wrote on last edited by
    #1

    Hi,
    I have the following scheme:

    • a transition between two states fired by a signal "stopped()" emitted by an object,
    • the object is regularly deleted ands replaced by a new instance. The associated transition is created again each time the object is replaced (I have checked this). The previous transition is deleted before the creation of the new transition. I have used "delete" hoping it will remove the transition. I cannot use removeTransition() because the deletion/creation of the transition is not performed at the same time of the deletion/creation of the object,
    • the object is created in the main thread,
    • the member function emitting the signal is called from another thread (i.e. not the main thread). But the object is not moved in this thread.

    Then, sometimes, the transition is not executed. I have found no specific situation creating this. I am sure that the signal is emitted, and processed by the event loop. Because I have connected a functor on the signal to display some traces. These traces prove that the initial state is active (present in the state machine configuration).

    1 Reply Last reply
    0

    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Search
    • Get Qt Extensions
    • Unsolved