Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- Purpose:
- Author: Reece W.
- License: All Rights Reserved J. Reece Wilson
- */
- class OProcessThread;
- struct ODEParameters
- {
- bool extended;
- union
- {
- struct
- {
- size_t one;
- size_t two;
- size_t three;
- size_t four;
- };
- struct
- {
- size_t one;
- size_t two;
- size_t three;
- size_t four;
- size_t five;
- size_t six;
- size_t seven;
- size_t eight;
- } ex;
- };
- };
- typedef void(* ODECompleteCallback_f)(void * context);
- class ODEWorkItem : public OObject
- {
- public:
- virtual error_t SetParameters(ODEParameters *) = 0;
- virtual error_t Schedule() = 0;
- virtual error_t Unschedule() = 0;
- virtual error_t HasDispatched(bool &) = 0;
- virtual error_t HasExecuted(bool &) = 0;
- virtual error_t WaitExecute(uint32_t ms) = 0;
- virtual error_t AwaitExecute(ODECompleteCallback_f cb) = 0;
- };
- LIBLINUX_SYM error_t CreateWorkItem(OPtr<OProcessThread> target, const OOutlivableRef<ODEWorkItem> out);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement