Changeset 1616

Show
Ignore:
Timestamp:
04/13/08 19:43:51 (1 month ago)
Author:
till
Message:

nebula
- fix: additional rwlocks to prevent race conditions

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nebula/trunk/src/classify.c

    r1613 r1616  
    147147 
    148148        // connect all outliers within range 
     149        Q_RLOCK(&outlierq->lock); 
    149150        for (cur_hqelem = outlierq->head; cur_hqelem; cur_hqelem = cur_hqelem->next) { 
    150151                if ((score = spamsum_match(((hash*)t->data)->spamsum, ((hash*)cur_hqelem->data)->spamsum)) >= cluster_radius) { 
     
    212213                if (!cur_hqelem) break; 
    213214        } 
     215        Q_ULOCK(&clusterq->lock); 
    214216 
    215217        Q_ULOCK(&clusterq->lock);