Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. WCF and WF
  4. How user-interface thread knows the animation thread has finished?

How user-interface thread knows the animation thread has finished?

Scheduled Pinned Locked Moved WCF and WF
helpquestion
2 Posts 2 Posters 0 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
    AghaKhan
    wrote on last edited by
    #1

    I have a control which does some animation. The animation (as far as I know) is on different thread. An event occurs and the control starts to animate, no problem. While it is animation it gets another request which I do not want and second request has to wait until it finished its first. I thought I place static bool and check it is previously animating and change vale when animation is comleated. This does not work because when context switch changes static bool has meaningless value. Now I have to protect static bool so context switch should not effect. It is long way to do so and it might not work. I haven’t tried either. Do you any better idea? Your help will be very much appreciated. Best regards Agha Khan

    N 1 Reply Last reply
    0
    • A AghaKhan

      I have a control which does some animation. The animation (as far as I know) is on different thread. An event occurs and the control starts to animate, no problem. While it is animation it gets another request which I do not want and second request has to wait until it finished its first. I thought I place static bool and check it is previously animating and change vale when animation is comleated. This does not work because when context switch changes static bool has meaningless value. Now I have to protect static bool so context switch should not effect. It is long way to do so and it might not work. I haven’t tried either. Do you any better idea? Your help will be very much appreciated. Best regards Agha Khan

      N Offline
      N Offline
      nicolashwh
      wrote on last edited by
      #2

      inject the thread , and kill it.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups