Changeset 203 in flair-src for trunk/lib/FlairCore/src/SharedMem.h


Ignore:
Timestamp:
11/09/17 14:00:49 (4 years ago)
Author:
Bayard Gildas
Message:

Added timeout on SharedMem Read

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/FlairCore/src/SharedMem.h

    r149 r203  
    2727*
    2828* Shared memory is identified by its name so it can be accessed
    29 * by another processus using its name.
     29* by another process using its name.
    3030*/
    3131
     
    6565  * \param size buffer size
    6666  */
    67   void Read(char *buf, size_t size) const;
     67  bool Read(char *buf, size_t size, Time nsTimeout=TIME_INFINITE) const;
    6868
    6969
    7070  /*!
    71   * \brief This function should be called when reader starts (in case of a SharedMem of type producerConsumer)
     71  * \brief This function should be called when reader is ready (in case of a SharedMem of type producerConsumer)
    7272  */
    7373   void ReaderReady();
Note: See TracChangeset for help on using the changeset viewer.