parent
3e4e87fb90
commit
1d3f1c8c0a
2 changed files with 7 additions and 8 deletions
|
@ -28,9 +28,7 @@
|
||||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
// Define PLATFORM_CUSTOM_THREAD_H in platform_config.h
|
#ifndef PLATFORM_THREAD_OVERRIDE // See details in thread.h
|
||||||
// Overriding the platform implementation is required in some proprietary platforms
|
|
||||||
#ifndef PLATFORM_CUSTOM_THREAD_H
|
|
||||||
|
|
||||||
#include "thread.h"
|
#include "thread.h"
|
||||||
|
|
||||||
|
@ -138,4 +136,4 @@ Thread::ID Thread::get_caller_id() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
#endif // PLATFORM_CUSTOM_THREAD_H
|
#endif // PLATFORM_THREAD_OVERRIDE
|
||||||
|
|
|
@ -28,10 +28,11 @@
|
||||||
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
/* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. */
|
||||||
/*************************************************************************/
|
/*************************************************************************/
|
||||||
|
|
||||||
// Define PLATFORM_CUSTOM_THREAD_H in platform_config.h
|
// Define PLATFORM_THREAD_OVERRIDE in your platform's `platform_config.h`
|
||||||
|
// to use a custom Thread implementation defined in `platform/[your_platform]/platform_thread.h`
|
||||||
// Overriding the platform implementation is required in some proprietary platforms
|
// Overriding the platform implementation is required in some proprietary platforms
|
||||||
#ifdef PLATFORM_CUSTOM_THREAD_H
|
#ifdef PLATFORM_THREAD_OVERRIDE
|
||||||
#include PLATFORM_CUSTOM_THREAD_H
|
#include "platform_thread.h"
|
||||||
#else
|
#else
|
||||||
#ifndef THREAD_H
|
#ifndef THREAD_H
|
||||||
#define THREAD_H
|
#define THREAD_H
|
||||||
|
@ -119,4 +120,4 @@ public:
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif // THREAD_H
|
#endif // THREAD_H
|
||||||
#endif // PLATFORM_CUSTOM_THREAD_H
|
#endif // PLATFORM_THREAD_OVERRIDE
|
||||||
|
|
Loading…
Reference in a new issue