mirror of
https://github.com/RT-Thread/rt-thread.git
synced 2026-10-08 06:55:38 +08:00
add pthread initialization in libc_system_init.
git-svn-id: https://rt-thread.googlecode.com/svn/trunk@1107 bbd45198-f89e-11dd-88c7-29a3b14d5316
This commit is contained in:
@@ -97,6 +97,7 @@ int libc_time_to_tick(const struct timespec *time)
|
||||
void libc_system_init(const char* tty_name)
|
||||
{
|
||||
int fd;
|
||||
extern int pthread_system_init(void);
|
||||
|
||||
/* init console device */
|
||||
rt_console_init(tty_name);
|
||||
@@ -112,4 +113,7 @@ void libc_system_init(const char* tty_name)
|
||||
|
||||
/* initialize system time */
|
||||
libc_system_time_init();
|
||||
#ifdef RT_USING_PTHREADS
|
||||
pthread_system_init();
|
||||
#endif
|
||||
}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -17,14 +17,7 @@ struct posix_sem
|
||||
/* next posix semaphore */
|
||||
struct posix_sem* next;
|
||||
};
|
||||
typedef struct posix_sem posix_sem_t;
|
||||
|
||||
struct semdes
|
||||
{
|
||||
rt_uint32_t flags;
|
||||
posix_sem_t* sem;
|
||||
};
|
||||
typedef struct semdes sem_t;
|
||||
typedef struct posix_sem sem_t;
|
||||
|
||||
int sem_close(sem_t *sem);
|
||||
int sem_destroy(sem_t *sem);
|
||||
|
||||
Reference in New Issue
Block a user