On 02/23/2018 05:06 PM, Georg Chini wrote:
> On 23.02.2018 13:54, Raman Shishniou wrote:
>> On 02/23/2018 01:26 PM, Georg Chini wrote:
>>> On 23.02.2018 11:03, Raman Shishniou wrote:
On 02/23/2018 11:38 AM, Georg Chini wrote:
> But now I have another issue:
> You are polling the
On 02/23/2018 05:06 PM, Georg Chini wrote:
> On 23.02.2018 13:54, Raman Shishniou wrote:
>> On 02/23/2018 01:26 PM, Georg Chini wrote:
>>> On 23.02.2018 11:03, Raman Shishniou wrote:
On 02/23/2018 11:38 AM, Georg Chini wrote:
> But now I have another issue:
> You are polling the
On 23.02.2018 13:54, Raman Shishniou wrote:
On 02/23/2018 01:26 PM, Georg Chini wrote:
On 23.02.2018 11:03, Raman Shishniou wrote:
On 02/23/2018 11:38 AM, Georg Chini wrote:
But now I have another issue:
You are polling the pipe and running the loop even if the source is user
suspended.
On 02/23/2018 01:26 PM, Georg Chini wrote:
> On 23.02.2018 11:03, Raman Shishniou wrote:
>> On 02/23/2018 11:38 AM, Georg Chini wrote:
>>
>>> But now I have another issue:
>>> You are polling the pipe and running the loop even if the source is user
>>> suspended.
>>> This seems like a waste of
On 23.02.2018 11:03, Raman Shishniou wrote:
On 02/23/2018 11:38 AM, Georg Chini wrote:
But now I have another issue:
You are polling the pipe and running the loop even if the source is user
suspended.
This seems like a waste of CPU (even more than accepting some POLLIN spam
during wakeup
On 02/23/2018 11:38 AM, Georg Chini wrote:
> On 22.02.2018 22:01, Raman Shishniou wrote:
>> On 02/22/2018 10:18 PM, Georg Chini wrote:
-/* Hmm, nothing to do. Let's sleep */
-pollfd->events = (short) (u->source->thread_info.state ==
PA_SOURCE_RUNNING ? POLLIN : 0);
On 22.02.2018 22:01, Raman Shishniou wrote:
On 02/22/2018 10:18 PM, Georg Chini wrote:
-/* Hmm, nothing to do. Let's sleep */
-pollfd->events = (short) (u->source->thread_info.state ==
PA_SOURCE_RUNNING ? POLLIN : 0);
+/* Post data to source, discard data or wait for
On 02/22/2018 10:18 PM, Georg Chini wrote:
>> -/* Hmm, nothing to do. Let's sleep */
>> -pollfd->events = (short) (u->source->thread_info.state ==
>> PA_SOURCE_RUNNING ? POLLIN : 0);
>> +/* Post data to source, discard data or wait for state transition
>> to be complete
On 22.02.2018 20:18, Georg Chini wrote:
On 22.02.2018 17:15, Raman Shyshniou wrote:
Currently the pipe-source will remain running even if no
writer is connected and therefore no data is produced.
This patch prevets this by auto-suspending source
when all writers are disconnected.
---
On 22.02.2018 17:15, Raman Shyshniou wrote:
Currently the pipe-source will remain running even if no
writer is connected and therefore no data is produced.
This patch prevets this by auto-suspending source
when all writers are disconnected.
---
src/modules/module-pipe-source.c | 190
On 02/22/2018 07:15 PM, Raman Shyshniou wrote:
> Currently the pipe-source will remain running even if no
> writer is connected and therefore no data is produced.
> This patch prevets this by auto-suspending source
> when all writers are disconnected.
This a draft. I applied Tanu's patch to next
Currently the pipe-source will remain running even if no
writer is connected and therefore no data is produced.
This patch prevets this by auto-suspending source
when all writers are disconnected.
---
src/modules/module-pipe-source.c | 190 ---
1 file changed,
12 matches
Mail list logo