Thread: Queue Event

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    26
    Rep Power
    0

    Queue Event


    Hi guys,

    I need to create a queue that kicks off a thread when anything is inserted.

    i.e. everytime a put is done on the queue, I want to kick-off a thread to go do something with the inserted item.

    I understand python does not have events...
  2. #2
  3. Contributing User
    Devshed Demi-God (4500 - 4999 posts)

    Join Date
    Aug 2011
    Posts
    4,996
    Rep Power
    481
    I'll be surprised if python doesn't support just about everything your operating system can do.

    http://docs.python.org/3/library/queue.html
    http://docs.python.org/3/library/sched.html
    [code]Code tags[/code] are essential for python code and Makefiles!

IMN logo majestic logo threadwatch logo seochat tools logo