<commit_before>#ifndef SHARED_ACCESS_H
#define SHARED_ACCESS_H
#include <boost/thread.hpp>
#include <boost/thread/condition_variable.hpp>

boost::condition_variable condition;
volatile int _close_qpop;
boost::mutex _monitor_pause;
boost::mutex _delay_after_click;
volatile int delay_count;

#endif<commit_msg>moved delay functions<commit_after>#ifndef SHARED_ACCESS_H
#define SHARED_ACCESS_H
#include <boost/thread.hpp>
#include <boost/thread/condition_variable.hpp>

boost::condition_variable condition;
volatile int _close_qpop;
boost::mutex _monitor_pause;
boost::mutex _delay_after_click;
volatile int delay_count;

/**
 * Used to set the current delay count in the main while loop of qpop
 * @param count number of loop iterations that must be made
 */
inline void SetDelayCount(unsigned int count){
	_delay_after_click.lock();
	delay_count = count;
	_delay_after_click.unlock();
}

/**
 * Decerement delay count
 */
inline void DecDelayCount(){
	_delay_after_click.lock();
	delay_count--;
	_delay_after_click.unlock();	
}

#endif
{'fraction_non_alphanumeric': 0.09565217391304348, 'fraction_numerical': 0.0, 'mean_word_length': 6.7894736842105265, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5294900', 'n_tokens_mistral': 337, 'n_tokens_neox': 332, 'n_words': 85}