Quantcast

Non-blocking notification of incoming IR

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Non-blocking notification of incoming IR

Michelle Dupuis-2

I'm creating a C++ app that will interface with lirc.  I looked at the irexec code as an example, and I see that the clode blocks (in a loop), waiting for an incoming IR signal.


Is there an example that is non-blocking?  Perhaps a way to setup a callback on arrival of an IR code?


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Non-blocking notification of incoming IR

Alec Leamas
On 16/01/16 16:11, Michelle Dupuis wrote:
> I'm creating a C++ app that will interface with lirc.  I looked at the
> irexec code as an example, and I see that the clode blocks (in a loop),
> waiting for an incoming IR signal.
>
>
> Is there an example that is non-blocking?  Perhaps a way to setup a
> callback on arrival of an IR code?

This is basically standard socket handling, it's nothing specific to
lirc. I *think* the easiest route is to create a blocking thread or
process which emits an event when there is input.

BTW, this one of the aspects considered for an upcoming major version.
However, this is as of now on galaxy far, far away.


Cheers!

--alec

------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Non-blocking notification of incoming IR

Paul Bender-3
In reply to this post by Michelle Dupuis-2
eventlircd does something similar.

On Jan 16, 2016, at 7:11 AM, Michelle Dupuis <[hidden email]> wrote:

I'm creating a C++ app that will interface with lirc.  I looked at the irexec code as an example, and I see that the clode blocks (in a loop), waiting for an incoming IR signal.

Is there an example that is non-blocking?  Perhaps a way to setup a callback on arrival of an IR code?
------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140


------------------------------------------------------------------------------
Site24x7 APM Insight: Get Deep Visibility into Application Performance
APM + Mobile APM + RUM: Monitor 3 App instances at just $35/Month
Monitor end-to-end web transactions and take corrective actions now
Troubleshoot faster and improve end-user experience. Signup Now!
http://pubads.g.doubleclick.net/gampad/clk?id=267308311&iu=/4140
Loading...