mirror of
https://gittea.dev/nova/th.git
synced 2025-10-21 18:30:15 -04:00
refractoring, fixed enter_shell
This commit is contained in:
@@ -146,6 +146,8 @@ void *thread_lft(void *data){
|
||||
}
|
||||
void *thread_rgt(void *data){
|
||||
unsigned int status = *(unsigned int*)data;
|
||||
(void)status;
|
||||
|
||||
pthread_mutex_lock(&mutex_rgt);
|
||||
pthread_mutex_lock(&mutex_wait);
|
||||
wait_count++;
|
||||
@@ -206,6 +208,8 @@ void *thread_rgt(void *data){
|
||||
}
|
||||
void *thread_top(void *data){
|
||||
unsigned int status = *(unsigned int*)data;
|
||||
(void)status;
|
||||
|
||||
pthread_mutex_lock(&mutex_top);
|
||||
free(top_buffer);
|
||||
|
||||
@@ -225,6 +229,8 @@ void *thread_top(void *data){
|
||||
}
|
||||
void *thread_btm(void *data){
|
||||
unsigned int status = *(unsigned int*)data;
|
||||
(void)status;
|
||||
|
||||
pthread_mutex_lock(&mutex_btm);
|
||||
pthread_mutex_lock(&mutex_wait);
|
||||
wait_count++;
|
||||
|
Reference in New Issue
Block a user