[PATCH 7/8] rtpoll: Separate out before/after/work callback userdata

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

 



On Mon, 2016-02-29 at 15:46 +0530, arun at accosted.net wrote:
>  void* pa_rtpoll_item_get_userdata(pa_rtpoll_item *i) {
>      pa_assert(i);
>  
> -    return i->userdata;
> +    return i->work_userdata;
>  }

I think it would make sense to rename the function to
pa_rtpoll_item_get_work_userdata().

>  static int asyncmsgq_read_before(pa_rtpoll_item *i) {
>      pa_assert(i);
>  
> -    if (pa_asyncmsgq_read_before_poll(i->userdata) < 0)
> +    if (pa_asyncmsgq_read_before_poll(i->work_userdata) < 0)

In the asyncmsgq read before and after callbacks you use work_userdata,
but in the write before and after callbacks you use
before/after_userdata. All of these userdatas are the same, so it
doesn't affect the behaviour, but it would be good to be consistent.

-- 
Tanu


[Index of Archives]     [Linux Audio Users]     [AMD Graphics]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux