Author Topic: Multithreading certain functions  (Read 6408 times)

Offline danielmiller

  • Member
  • **
  • Posts: 57
    • View Profile
Multithreading certain functions
« on: October 15, 2007, 12:00:29 PM »
Is there a way to keep PM from becoming unresponsive during sorting?

-Daniel Miller

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Multithreading certain functions
« Reply #1 on: October 15, 2007, 12:32:58 PM »
Daniel,

Is there a way to keep PM from becoming unresponsive during sorting?

No.  PM would be quite unusable if the order of thumbnails spontaneously changed while you were trying to work with it.  I can't see any other way to do it than the way it is done now.

-Kirk

Offline danielmiller

  • Member
  • **
  • Posts: 57
    • View Profile
Re: Multithreading certain functions
« Reply #2 on: October 15, 2007, 03:14:37 PM »
I see your point. I tend to work on more than one sheet of thumbnails at the same time though. It would be great to be able to work on another separate tab of thumbs while the other is unavailable due to the sorting.

Is that possible?

-Daniel Miller

Offline Kirk Baker

  • Senior Software Engineer
  • Camera Bits Staff
  • Superhero Member
  • *****
  • Posts: 25020
    • View Profile
    • Camera Bits, Inc.
Re: Multithreading certain functions
« Reply #3 on: October 15, 2007, 03:32:29 PM »
Daniel,

I see your point. I tend to work on more than one sheet of thumbnails at the same time though. It would be great to be able to work on another separate tab of thumbs while the other is unavailable due to the sorting.

Is that possible?

Not currently.  All sorting is performed on the the event thread which means no user-events are processed during the sort.  I would have to make the sorting done on another thread and lockout only that one Contact Sheet tab until the thread completed.  This would be some fairly tricky programming that I wouldn't want to begin without some serious thought.

-Kirk

Offline danielmiller

  • Member
  • **
  • Posts: 57
    • View Profile
Re: Multithreading certain functions
« Reply #4 on: October 15, 2007, 03:36:14 PM »
Ok, well thanks for listening.