Skip to content

Implemented utilities to get rid of race conditions in plugins (now used in CAR plugin only)#17

Merged
jsiegle merged 7 commits intoopen-ephys:developmentfrom
sept-en:development
Mar 23, 2016
Merged

Implemented utilities to get rid of race conditions in plugins (now used in CAR plugin only)#17
jsiegle merged 7 commits intoopen-ephys:developmentfrom
sept-en:development

Conversation

@sept-en
Copy link
Copy Markdown
Contributor

@sept-en sept-en commented Mar 21, 2016

  • Implemented LinearSmoothedValueAtomic class based on the JUCE 4.0 library' LinearSmoothedValue class but with some improvements that were suggested by Timur Doumler during his JUCE Summit 2015 talk.
  • LinearSmoothedValueAtomic is very convenient to use with float values that need linearly smoothed behaviour (like volume, etc.) and which are shared between several threads (i.e. audio and GUI).
  • This class guarantees we won't have any race conditions and it will remains lock-free because of using std::atomic inside it.
  • CAR plugin: implemented race-condition free behaviour for gain parameter.
  • ChannelSelector: changed channelChanged() method signature.

sept-en added 7 commits March 21, 2016 23:38
* Implemented LinearSmoothedValueAtomic class based on the
  JUCE 4.0 library' LinearSmoothedValue class but with some improvements
  that were suggested by Timur Doumler during his JUCE Summit 2015
  talk.
* LinearSmoothedValueAtomic is very convenient to use with float values
  that need linearly smoothed behaviour (like volume, etc.) and which
  are shared between several threads (i.e. audio and GUI).
* This class guarantees we won't have any race conditions and it will
  remains lock-free because of using std::atomic inside it.
@jsiegle jsiegle merged commit 06f1714 into open-ephys:development Mar 23, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants