Fix wrong usage of condition_variable [11927] (#2039)
Fix wrong usage of condition_variable [11927] (#2039)

* Refs #11676. Fix wrong usage of condition_variable

Signed-off-by: Ricardo González Moreno <d4e7430f1534a12df46cedd1ac369935436dbb94@richiware.dev>

* Apply suggestion

Co-authored-by: Miguel Company <8e22e93d3fc2e7264deef6de9af32f393c0e29cd@eprosima.com>

Co-authored-by: Miguel Company <8e22e93d3fc2e7264deef6de9af32f393c0e29cd@eprosima.com>
eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-RTPS,eProsima/Fast-DDS,eProsima/Fast-DDS