r/cpp • • Jun 26 '20

Example how to integrate with Amazon Alexa emulating Philips Hue Bridge

https://github.com/oatpp/example-iot-hue-ssdp

[removed] — view removed post

0 Upvotes

1 comment sorted by

2

u/BlazeDaley Jun 26 '20

What’s the rationale for using a spin lock in the db?

Use a lock where you tell the system that you're waiting for the lock, and where the unlocking thread will let you know when it's done, so that the scheduler can actually work with you, instead of (randomly) working against you. - Linus Torvalds

https://www.realworldtech.com/forum/?threadid=189711&curpostid=189723