add last backwards-compatible version

This commit is contained in:
2021-12-14 00:33:46 -07:00
parent 68b10d413b
commit b0dd3f07f3
335 changed files with 4746 additions and 19627 deletions

View File

@@ -40,17 +40,8 @@ public:
//! Sleeps p_timeout_seconds or less when aborted, returns true when execution should continue, false when not.
bool sleep_ex(double p_timeout_seconds) const;
//! Waits for an event. Returns true if event is now signaled, false if the specified period has elapsed and the event did not become signaled. \n
//! Throws exception_aborted if aborted.
bool waitForEvent( pfc::eventHandle_t evtHandle, double timeOut );
//! Waits for an event. Returns true if event is now signaled, false if the specified period has elapsed and the event did not become signaled. \n
//! Throws exception_aborted if aborted.
bool waitForEvent(pfc::event& evt, double timeOut);
//! Waits for an event. Returns once the event became signaled; throw exception_aborted if abort occurred first.
void waitForEvent(pfc::eventHandle_t evtHandle);
//! Waits for an event. Returns once the event became signaled; throw exception_aborted if abort occurred first.
void waitForEvent(pfc::event& evt);
bool waitForEvent( pfc::eventHandle_t evtHandle, double timeOut );
bool waitForEvent( pfc::event & evt, double timeOut ) {return waitForEvent( evt.get_handle(), timeOut ); }
protected:
abort_callback() {}
~abort_callback() {}
@@ -73,8 +64,8 @@ public:
abort_callback_event get_abort_event() const {return m_event.get_handle();}
private:
abort_callback_impl(const abort_callback_impl &) = delete;
const abort_callback_impl & operator=(const abort_callback_impl&) = delete;
abort_callback_impl(const abort_callback_impl &);
const abort_callback_impl & operator=(const abort_callback_impl&);
volatile bool m_aborting;
pfc::event m_event;
@@ -110,10 +101,4 @@ using namespace foobar2000_io;
PP::aborter aborter_pfcv2( aborterRef ); \
PP::aborterScope l_aborterScope( aborter_pfcv2 );
namespace fb2k {
// A shared abort_callback_dummy instance
extern abort_callback_dummy noAbort;
}
#endif //_foobar2000_sdk_abort_callback_h_