1
0
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:
nova
2025-08-18 22:01:16 +02:00
parent f25768d522
commit 3f90802663
6 changed files with 31 additions and 7 deletions

View File

@@ -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++;