| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 /** @file | 7 /** @file |
| 8 * Defines the API in the | 8 * Defines the API in the |
| 9 * <a href="group___pthread.html">Pthread library</a> | 9 * <a href="group___pthread.html">Pthread library</a> |
| 10 * | 10 * |
| (...skipping 390 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 401 * @param[out] thread_id A pointer to the location where the identifier of the | 401 * @param[out] thread_id A pointer to the location where the identifier of the |
| 402 * newly created thread is stored on success. | 402 * newly created thread is stored on success. |
| 403 * @param attr Thread attributes structure. | 403 * @param attr Thread attributes structure. |
| 404 * @param start_routine Thread function. | 404 * @param start_routine Thread function. |
| 405 * @param arg A single argument that is passed to the thread function. | 405 * @param arg A single argument that is passed to the thread function. |
| 406 * | 406 * |
| 407 * @return 0 for success, non-zero error code otherwise. | 407 * @return 0 for success, non-zero error code otherwise. |
| 408 */ | 408 */ |
| 409 extern int pthread_create(pthread_t *thread_id, | 409 extern int pthread_create(pthread_t *thread_id, |
| 410 const pthread_attr_t *attr, | 410 const pthread_attr_t *attr, |
| 411 void *(*start_routine) (void *p), | 411 void *(*start_routine)(void *p), |
| 412 void *arg); | 412 void *arg); |
| 413 | 413 |
| 414 /** @nqPosix | 414 /** @nqPosix |
| 415 * Obtains the identifier of the current thread. | 415 * Obtains the identifier of the current thread. |
| 416 * | 416 * |
| 417 * @linkPthread | 417 * @linkPthread |
| 418 * | 418 * |
| 419 * @return Thread ID of the current thread. | 419 * @return Thread ID of the current thread. |
| 420 */ | 420 */ |
| 421 extern pthread_t pthread_self(void); | 421 extern pthread_t pthread_self(void); |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 683 | 683 |
| 684 /** | 684 /** |
| 685 * @} End of PTHREAD group | 685 * @} End of PTHREAD group |
| 686 */ | 686 */ |
| 687 | 687 |
| 688 #ifdef __cplusplus | 688 #ifdef __cplusplus |
| 689 } | 689 } |
| 690 #endif | 690 #endif |
| 691 | 691 |
| 692 #endif /* pthread.h */ | 692 #endif /* pthread.h */ |
| OLD | NEW |