Commit Graph

35 Commits

Author SHA1 Message Date
Andy Heninger
afa9b9b48e ICU-20588 UMutex, add cleanup of underlying mutexes, and simplify usage model 2019-05-24 13:24:59 -07:00
Andy Heninger
b772241b52 ICU-20520 UMutex refactoring.
- Use STATIC_NEW for mutex creation, to avoid order-of-destruction problems
    by avoiding destruction altogether, while avoiding memory leak reports.

  - Remove UConditionVar, replace with direct use of std::condition_variable
2019-05-07 13:50:49 -07:00
Andy Heninger
bc4bb89af2 ICU-20488 mutex static constructor fixes.
Remove the dependencies from the ICU library code on static constructors
that were introduced by using std::mutex and condition variables. The
mutexes are lazily initialized by embedding them as local static variables
in getter functions, and relying on the C++ compiler/runtime to do thread
safe initialization of them.
2019-03-12 09:52:16 -07:00
Andy Heninger
d7f2cd98d3 ICU-10688 Break Iterator type logic removal, a few minor cleanups.
X-SVN-Rev: 40689
2017-12-05 00:07:30 +00:00
Andy Heninger
ca7b62180e ICU-10688 branch, work in progress.
X-SVN-Rev: 40686
2017-12-03 00:36:54 +00:00
Andy Heninger
4e1c4096a6 ICU-9954 Break Iteration, remove reverse rules, add boundary caching.
X-SVN-Rev: 40433
2017-09-19 18:17:22 +00:00
Andy Heninger
242e02c388 ICU-12764 icu4c utf-8 source files, update Copyright notices.
X-SVN-Rev: 39583
2017-01-20 00:20:31 +00:00
Michael Ow
61607c2773 ICU-12564 Update copyright notice in trunk
X-SVN-Rev: 38848
2016-06-15 18:58:17 +00:00
Yoshito Umaoka
00ca13e126 ICU-12564 Reverted r38761 and r38762, because we want to prepend the Unicode copyright for existing source files, instead of replacing copyright comments.
X-SVN-Rev: 38776
2016-05-31 21:45:07 +00:00
Michael Ow
c9f199a30f ICU-12564 Update copyright notice in ICU4C
X-SVN-Rev: 38761
2016-05-26 22:32:17 +00:00
Fredrik Roubert
7f4b8d106b ICU-12012 Replace all sizeof p / sizeof *p with UPRV_LENGTHOF().
R=markus.icu@gmail.com

Review URL: https://codereview.appspot.com/285520043 .

X-SVN-Rev: 38337
2016-02-23 10:40:09 +00:00
Andy Heninger
7cb3f9c24c ICU-10687 Break Engine Factory, simplify synchronization.
X-SVN-Rev: 37440
2015-05-14 21:54:53 +00:00
Peter Edberg
d87c86274c ICU-10326 Add dictionary-based word/line break for Burmese/Myanmar
X-SVN-Rev: 36397
2014-09-08 22:16:21 +00:00
Peter Edberg
bf4126616b ICU-7647 Add/use LaoBreakEngine and laodict.txt; more useful messages in gendict
X-SVN-Rev: 34229
2013-09-06 23:43:13 +00:00
Markus Scherer
feea8e2c99 ICU-9671 fix BreakIterator compiler warnings
X-SVN-Rev: 32653
2012-10-17 23:54:34 +00:00
Steven R. Loomis
1361355eb5 ICU-9551 fix uconfig failures that were in m2, disable CJKBreak without normalization. Merges from r32354 and r32355 by dsengup.
X-SVN-Rev: 32367
2012-09-11 04:02:08 +00:00
Maxime Serrano
8466372715 ICU-9353 fix windows makefile, remove mentions of word_ja.txt
X-SVN-Rev: 32191
2012-08-17 17:09:01 +00:00
Maxime Serrano
53650b04c5 ICU-9353 add symbols to dictionarydata.cpp for linker
X-SVN-Rev: 32187
2012-08-17 00:10:22 +00:00
Maxime Serrano
c64c0299d7 ICU-9353 merge dbbi-tries work into the trunk
X-SVN-Rev: 32184
2012-08-16 23:01:49 +00:00
Markus Scherer
1beb0f1e4f ICU-8680 require C++ namespace, replace most U_NAMESPACE_QUALIFIER with icu::, remove still-draft U_STD_NS, U_STD_NSQ, and U_STD_NS_USE
X-SVN-Rev: 30281
2011-07-06 04:03:35 +00:00
Peter Edberg
7aaca9b950 ICU-8329 Roll in Khmer dictionary word break code from George, data from Nathan/sbbic.org
X-SVN-Rev: 30019
2011-05-04 13:25:37 +00:00
Michael Ow
b4853d0331 ICU-7222 Remove Windows x64 warnings by casting explicitly.
X-SVN-Rev: 26870
2009-11-11 15:47:22 +00:00
George Rhoten
c976c8916f ICU-5695 Add TODO comment about using the global mutex.
X-SVN-Rev: 22656
2007-09-12 03:53:13 +00:00
George Rhoten
d3a10484b3 ICU-5445 Fix some compiler warnings.
X-SVN-Rev: 21616
2007-06-01 07:21:01 +00:00
Deborah Goldsmith
88d93814c9 ICU-5695 Reorganize ICULanguageBreakFactory for more flexibility
X-SVN-Rev: 21485
2007-05-02 23:23:31 +00:00
Deborah Goldsmith
505ae092f0 ICU-5695 Reorganize ICULanguageBreakFactory for more flexibility
X-SVN-Rev: 21484
2007-05-02 23:07:12 +00:00
George Rhoten
1658151152 ICU-5349 Don't use mutex.h when umutex.h also works.
X-SVN-Rev: 20264
2006-09-08 03:35:35 +00:00
George Rhoten
b27729b208 ICU-5304 Allow source code to work again without using U_NAMESPACE_USE
X-SVN-Rev: 20240
2006-09-03 17:08:23 +00:00
George Rhoten
dbc0d1d9ee ICU-5349 Use UMTX_CHECK for double check locking.
X-SVN-Rev: 20176
2006-08-29 04:57:05 +00:00
Andy Heninger
9f85d5dd08 ICU-5170 move RBBI from CharacterIterator to UText
X-SVN-Rev: 19579
2006-04-22 05:29:27 +00:00
Ram Viswanadha
74a465c31c ICU-5117 make brkitr work with changes to data files
X-SVN-Rev: 19568
2006-04-21 00:30:22 +00:00
George Rhoten
504248ad53 ICU-5161 Fix a memory leak.
X-SVN-Rev: 19554
2006-04-15 18:04:35 +00:00
Deborah Goldsmith
76c98bfa7c ICU-5117 Fix unused parameter warnings
X-SVN-Rev: 19423
2006-03-23 20:48:47 +00:00
George Rhoten
56b11c8b39 ICU-5117 Fixes for other versions of gcc
X-SVN-Rev: 19411
2006-03-23 02:54:34 +00:00
Deborah Goldsmith
490cb834fa ICU-5117 Thai break should work in all locales
X-SVN-Rev: 19408
2006-03-23 00:54:12 +00:00