fluid-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [fluid-dev] fluid_player_join () usage of usleep


From: David Henningsson
Subject: Re: [fluid-dev] fluid_player_join () usage of usleep
Date: Tue, 13 Jan 2015 15:12:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.3.0



On 2015-01-13 14:41, Surabhi Mishra wrote:
Hello All,

usleep () is considered dangerous to be used in embedded systems as it
reduces responsiveness.
In function fluid_player_join () usleep (10000) is used to check the status.

Should it be replaced with something like conditional wait or anything else.

Agreed. When I look at it now, it seems more reasonable to have some conditional wait, and in addition make player->status atomic.

// David



reply via email to

[Prev in Thread] Current Thread [Next in Thread]