[−][src]Function libeyelink_sys::eyelink_data_count
pub unsafe extern "C" fn eyelink_data_count(
samples: INT16,
events: INT16
) -> INT16
@ingroup messaging Counts total items in queue: samples, events, or both.
@param samples If non-zero count the samples. @param events If non-zero count the events. @return Total number of samples and events is in the queue.
\b Example:
\code int check_sample_event_status(int link_samples, int link_events) { UINT32 t = current_time(); int i; while(current_time() < t + 300) { int arrived = 1; if((i=check_recording())!=0) return i; if(link_samples) if(eyelink_data_count(1,0)==0) arrived = 0; if(link_events) if(eyelink_data_count(0,1)==0) arrived = 0; if(arrived) return 0; } return -1; } \endcode