ofxSingleInstanceApp is an addon for openframeworks https://github.com/openframeworks/openframeworks. It makes an ofApp only allow one instance.
git clone https://github.com/thomasgeissl/ofxSingleInstanceApp.git /path/to/your/openframeworks/addons/ofxSingleInstanceApp
- The addon config file is still missing.