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: 1024     Entry time: 14 Oct 2014     Reply to this: 1028   1029
Author: Konstantin Olchanski 
Topic: Bug Report 
Subject: Problem with EQ_USER 
If you use EQ_USER in mfe.c and have multiple threads writing into the ring buffer, you will have a big 
problem - the thread locking in the ring buffer code only works for a single writer thread and a single 
reader thread.

Presently, it is not clear how to have multiple multithreaded equipments inside one frontend.

During the Summer of 2013 code briefly existed in mfe.c to have an array of ring buffers and each 
multithreaded equipment could write into it's own buffer.

But this code is now removed and mfe.c can only read from a single ring buffer and as I noted above, ring 
buffer locking requires that only a single thread writes into it.
K.O.
ELOG V3.1.4-2e1708b5