diff options
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); } } |
