Skip to content

Commit

Permalink
TittaLSL: write lock was missing in receiver thread, would crash when…
Browse files Browse the repository at this point in the history
… writing from receiver thread and consuming/peaking/clearing at the same time
  • Loading branch information
dcnieho committed Dec 18, 2024
1 parent 93ce4fe commit 2f1a086
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions LSL_streamer/src/TittaLSL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1508,6 +1508,7 @@ void Receiver::recorderThreadFunc()
lastTCorr = tCorr;

// now parse into type
auto l = lockForWriting(inlet);
if constexpr (std::is_same_v<DataType, TittaLSL::Receiver::gaze>)
{
data_t* ptr = sample;
Expand Down

0 comments on commit 2f1a086

Please sign in to comment.