Hi,

I am fiddling around with C++ and RIOT. I would like to write a OOP Wrapper on the thread implementation.

Currently I'll try to implement a join Method. The caller of this function should do nothing until the thread is terminated.

My Idea is something like:

auto join() -> void {
    while (this->getStatus() != STATUS_STOPPED) {
        // Increase Threads Priority to calling threads priority
        thread_yield();
    }
}

I think it might solve my Problem without much overhead.

Simon

Am 2017-04-20 21:19 schrieb Kaspar Schleiser:
Hi,

On 04/20/2017 06:13 PM, Simon Brummer wrote:
Is it possible to increase a threads priority after creation?

Not through the API. It might be easy to add, though. May I ask what's
your use case?

Kaspar
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users
_______________________________________________
users mailing list
[email protected]
https://lists.riot-os.org/mailman/listinfo/users

Reply via email to