| OLD | NEW |
| 1 // Copyright (c) 2014, the Fletch project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dartino project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE.md file. | 3 // BSD-style license that can be found in the LICENSE.md file. |
| 4 | 4 |
| 5 #include <pthread.h> | 5 #include <pthread.h> |
| 6 #include <unistd.h> | 6 #include <unistd.h> |
| 7 | 7 |
| 8 #include "src/shared/assert.h" | 8 #include "src/shared/assert.h" |
| 9 #include "src/shared/platform.h" | 9 #include "src/shared/platform.h" |
| 10 #include "src/shared/test_case.h" | 10 #include "src/shared/test_case.h" |
| 11 | 11 |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 pthread_t other; | 50 pthread_t other; |
| 51 Mutex* mutex = Platform::CreateMutex(); | 51 Mutex* mutex = Platform::CreateMutex(); |
| 52 int thread_created = pthread_create(&other, NULL, &RunTestBusyLock, mutex); | 52 int thread_created = pthread_create(&other, NULL, &RunTestBusyLock, mutex); |
| 53 EXPECT_EQ(0, thread_created); | 53 EXPECT_EQ(0, thread_created); |
| 54 LoopIncrement(mutex, 1); | 54 LoopIncrement(mutex, 1); |
| 55 pthread_join(other, NULL); | 55 pthread_join(other, NULL); |
| 56 delete mutex; | 56 delete mutex; |
| 57 } | 57 } |
| 58 | 58 |
| 59 } // namespace fletch | 59 } // namespace fletch |
| OLD | NEW |