diff options
| author | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-04-22 16:07:49 +0000 |
|---|---|---|
| committer | reed@android.com <reed@android.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2010-04-22 16:07:49 +0000 |
| commit | 7d970c739d44486d3382eed8acc4eecccecf3453 (patch) | |
| tree | c39742a2d2f56449619038a1a4e9f8e5716edebe /samplecode/SampleFontCache.cpp | |
| parent | 5f6a0762f14f73859e60f0e8339ca133d10e4d3c (diff) | |
updates
git-svn-id: http://skia.googlecode.com/svn/trunk@558 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'samplecode/SampleFontCache.cpp')
| -rw-r--r-- | samplecode/SampleFontCache.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/samplecode/SampleFontCache.cpp b/samplecode/SampleFontCache.cpp index fb63f7146c..75645bd305 100644 --- a/samplecode/SampleFontCache.cpp +++ b/samplecode/SampleFontCache.cpp @@ -89,17 +89,14 @@ public: gDone = false; for (int i = 0; i < N; i++) { - int status; - pthread_attr_t attr; + int status; - status = pthread_attr_init(&attr); - SkASSERT(0 == status); - status = pthread_create(&fMThreads[i], &attr, measure_proc, NULL); + status = pthread_create(&fMThreads[i], NULL, measure_proc, NULL); SkASSERT(0 == status); fBitmaps[i].setConfig(SkBitmap::kRGB_565_Config, 320, 240); fBitmaps[i].allocPixels(); - status = pthread_create(&fDThreads[i], &attr, draw_proc, &fBitmaps[i]); + status = pthread_create(&fDThreads[i], NULL, draw_proc, &fBitmaps[i]); SkASSERT(0 == status); } } |
