RE: potential deadlock in _once

2018-03-06 Thread Passas, Stavros
-Original Message- From: Sebastian Huber [mailto:sebastian.hu...@embedded-brains.de] Sent: Tuesday, March 6, 2018 10:19 AM To: Passas, Stavros ; rtems-de...@rtems.org Subject: Re: potential deadlock in _once > Yes, please open a ticket and provide a test case for the RTEMS test su

potential deadlock in _once

2018-03-04 Thread Passas, Stavros
Hi, We have faced RTEMS threads getting locked up when using certain c++ functionality. Issue happens for example when std::future is combined with std::async. Investigating deeper, seems like this happens if std::async executes before std::future gets scheduled to run. Both of these create a p