flipper-io / flipper

Flipper is a development platform that can be controlled from any programming language.
https://www.flipper.io/
Apache License 2.0
70 stars 15 forks source link

Make all libflipper functions thread safe and generally reduce dependence on global state. #16

Closed TravisWhitaker closed 7 years ago

TravisWhitaker commented 8 years ago

There's machinery in libflipper that relies on global state necessarily, e.g. all functions that need to construct an FMR packet share a single global buffer. We should do two things to deal with this:

TravisWhitaker commented 8 years ago

It has been decided to push explicit thread safety back a bit. This confers the following responsibilities: