rpi-ws281x / rpi-ws281x-python

Python library wrapping for the rpi-ws281x library
BSD 2-Clause "Simplified" License
323 stars 103 forks source link

Wrap render function in SWIG threads macro, to disable Python GIL #101

Closed stephen322 closed 1 year ago

stephen322 commented 1 year ago

My attempt at issue #98 that I submitted -- a new wrapper function to disable Python GIL during rendering. It-Works-For-Me...

This is so unrelated Python threads can run while ws2812 does its thing. I'm not trying to imply rpi_ws281x is thread-safe.

Not sure why the SWIG-generated files have different formatting than what was there. I used "swig -python -threads".