#include <string>
+#include "pbd/libpbd_visibility.h"
+
namespace PBD {
namespace MMCSS {
ERROR_INVALID_TASK_INDEX = 1551
};
-bool initialize ();
+bool LIBPBD_API initialize ();
-bool deinitialize ();
+bool LIBPBD_API deinitialize ();
-bool set_thread_characteristics (const std::string& task_name, HANDLE *task_handle);
+bool LIBPBD_API set_thread_characteristics (const std::string& task_name, HANDLE *task_handle);
-bool revert_thread_characteristics (HANDLE task_handle);
+bool LIBPBD_API revert_thread_characteristics (HANDLE task_handle);
-bool set_thread_priority (HANDLE, AVRT_PRIORITY);
+bool LIBPBD_API set_thread_priority (HANDLE, AVRT_PRIORITY);
} // namespace MMCSS
#include <stdint.h>
+#include "pbd/libpbd_visibility.h"
+
namespace PBD {
namespace MMTIMERS {
* Get the minimum Multimedia Timer resolution as supported by the system
* @return true if getting min timer resolution was not successful
*/
-bool get_min_resolution (uint32_t& timer_resolution_ms);
+bool LIBPBD_API get_min_resolution (uint32_t& timer_resolution_ms);
/**
* Set the minimum Multimedia Timer resolution as supported by the system
* @return true if setting min timer resolution was successful
*/
-bool set_min_resolution ();
+bool LIBPBD_API set_min_resolution ();
/**
* Set current Multimedia Timer resolution. If the timer resolution has already
* @return true if setting the timer value was successful, false if setting the
* timer resolution failed or the resolution has already been set.
*/
-bool set_resolution(uint32_t timer_resolution_ms);
+bool LIBPBD_API set_resolution(uint32_t timer_resolution_ms);
/**
* Reset Multimedia Timer resolution. In my testing, if the timer resolution is
* even after calling Sleep.
* @return true if setting the timer value was successful
*/
-bool reset_resolution();
+bool LIBPBD_API reset_resolution();
} // namespace MMTIMERS
* @return true if QPC timer is usable, use check_timer_valid to try to check
* if it is monotonic.
*/
-bool initialize ();
+bool LIBPBD_API initialize ();
/**
* @return true if QueryPerformanceCounter is usable as a timer source
* timer source. This check is not conclusive and there are probably conditions
* under which this check will return true but the timer is not monotonic.
*/
-bool check_timer_valid ();
+bool LIBPBD_API check_timer_valid ();
/**
* @return the value of the performance counter converted to microseconds
* positive value. If QPC is not supported(OS < XP) then -1 is returned but the
* MS docs say that this won't occur for systems >= XP.
*/
-int64_t get_microseconds ();
+int64_t LIBPBD_API get_microseconds ();
} // namespace QPC
* @return A timer value in microseconds or -1 in the event that the reading
* the timer source fails.
*/
-int64_t get_microseconds ();
+int64_t LIBPBD_API get_microseconds ();
} // namespace PBD