예제 #1
0
 public void ResetSearch()
 {
     lock (_searcherLock)
     {
         _searcher = null;
     }
 }
예제 #2
0
 private BoyerMooreStringSearch GetSearcher(string sample)
 {
     lock (_searcherLock)
     {
         if (_searcher == null || _searcher.Sample != sample)
             _searcher = new BoyerMooreStringSearch(sample);
         return _searcher;
     }
 }