Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  14 Oct 2014, Konstantin Olchanski, Bug Report, Problem with EQ_USER 
    Reply  15 Oct 2014, Stefan Ritt, Bug Report, Problem with EQ_USER 
    Reply  16 Oct 2014, Stefan Ritt, Bug Report, Problem with EQ_USER 
Message ID: 1028     Entry time: 15 Oct 2014     In reply to: 1024
Author: Stefan Ritt 
Topic: Bug Report 
Subject: Problem with EQ_USER 
Sure, each thread needs its own ring buffer for writing.

So I see that we need back the multiple-ring-buffer-readout-scheme even before MEG will start. So what you need is something like

for (i=0 ; rb[i] != 0 ; i++) {
  read event from rb[i];
}

as it was before. What I do not like is that rb is a global variable, we should better use the encapsulation functions and extend get_event_rb() to 
get_event_rb(i) so you can have n ring buffers.

Give me one day, I will extend the current code to make it work again and to implement N threads.

Cheers,
Stefan
ELOG V3.1.4-2e1708b5