Make sure that those recently moved functions will be visible if they're needed outside of libpbd
This commit is contained in:
parent
44ea59495c
commit
d609217c55
|
@ -23,6 +23,8 @@
|
|||
|
||||
#include <string>
|
||||
|
||||
#include "pbd/libpbd_visibility.h"
|
||||
|
||||
namespace PBD {
|
||||
|
||||
namespace MMCSS {
|
||||
|
@ -40,15 +42,15 @@ enum error_codes {
|
|||
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
|
||||
|
||||
|
|
|
@ -21,6 +21,8 @@
|
|||
|
||||
#include <stdint.h>
|
||||
|
||||
#include "pbd/libpbd_visibility.h"
|
||||
|
||||
namespace PBD {
|
||||
|
||||
namespace MMTIMERS {
|
||||
|
@ -29,13 +31,13 @@ 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
|
||||
|
@ -44,7 +46,7 @@ bool set_min_resolution ();
|
|||
* @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
|
||||
|
@ -53,7 +55,7 @@ bool set_resolution(uint32_t timer_resolution_ms);
|
|||
* even after calling Sleep.
|
||||
* @return true if setting the timer value was successful
|
||||
*/
|
||||
bool reset_resolution();
|
||||
bool LIBPBD_API reset_resolution();
|
||||
|
||||
} // namespace MMTIMERS
|
||||
|
||||
|
@ -65,7 +67,7 @@ namespace QPC {
|
|||
* @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
|
||||
|
@ -74,7 +76,7 @@ bool initialize ();
|
|||
* 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
|
||||
|
@ -83,7 +85,7 @@ bool check_timer_valid ();
|
|||
* 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
|
||||
|
||||
|
@ -95,7 +97,7 @@ int64_t get_microseconds ();
|
|||
* @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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user