summaryrefslogtreecommitdiff
path: root/parsing.c
AgeCommit message (Collapse)AuthorFilesLines
2010-11-10Lock calls to fgets().lastseenJon Bergli Heier1-2/+14
2010-11-09Temporary workaround for race condition in early parsing.Jon Bergli Heier1-2/+10
Parsing the date in log_opened and day_changed takes its time, so other threads might set the time and use that before the initial date is set. This only really matters for seen_first as of now.
2010-11-09Avoid race condition on setting seen_first and seen_last.Jon Bergli Heier1-12/+14
2010-11-09Modified time branch to store only first and last time seen.Jon Bergli Heier1-129/+42
2010-06-05Mostly-working implementation of time tracking for users.timeJon Bergli Heier1-6/+309
Needs some more testing.
2010-06-03Return NULL from thread_func.Jon Bergli Heier1-0/+2
2010-06-02Added a minimum word length config option, "wordlen_min".Jon Bergli Heier1-22/+17
Also did some minor cleanup of the word add code in process_file.
2010-01-28Fixed mutex locks on several objects in process_file().Jon Bergli Heier1-8/+20
2010-01-28Fixed monolog readings not being synchronized when using more than oneJon Bergli Heier1-3/+7
thread. This is solved by moving last_user, in_monolog and monolog_len to the heap. These are already inside the user_mutex lock when used.
2010-01-08Implemented monolog counters.Jon Bergli Heier1-0/+19
2009-11-22Added support for using pthreads.Jon Bergli Heier1-0/+168
Data processing (parsing) moved to parsing.c. The line parsing code is moved to its own function which is called from one or more threads (depends on the "threads" setting in the config file).