[Suggestion] Download Queue System #1

Open
opened 2021-02-25 16:13:36 -06:00 by CodeforEvolution · 1 comment
CodeforEvolution commented 2021-02-25 16:13:36 -06:00 (Migrated from github.com)

Hello! This is less of an issue and more a suggestion for a queue system that you mentioned in your TODO file to simplify download handling. For a simple queue implementation, I would take a peak at Haiku's BJob class found in the Support Kit. For convenience, here's a link to the header: https://github.com/haiku/haiku/blob/master/headers/os/support/Job.h

There's also a private JobQueue class, but I'd copy its implementation into your own files as it's still a private class that originated from Haiku's Package Kit: https://github.com/haiku/haiku/blob/master/src/kits/support/JobQueue.cpp

Hope this helps you get started!

Hello! This is less of an issue and more a suggestion for a queue system that you mentioned in your TODO file to simplify download handling. For a simple queue implementation, I would take a peak at Haiku's BJob class found in the Support Kit. For convenience, here's a link to the header: https://github.com/haiku/haiku/blob/master/headers/os/support/Job.h There's also a private JobQueue class, but I'd copy its implementation into your own files as it's still a private class that originated from Haiku's Package Kit: https://github.com/haiku/haiku/blob/master/src/kits/support/JobQueue.cpp Hope this helps you get started!
JadedCtrl commented 2021-02-26 21:25:02 -06:00 (Migrated from github.com)

Thanks, that looks like just like what I was looking for!

Thanks, that looks like just like what I was looking for!
Sign in to join this conversation.
No description provided.