diff options
-rwxr-xr-x | snowcast_control | bin | 35309 -> 21328 bytes | |||
-rwxr-xr-x | snowcast_listener | bin | 34654 -> 19128 bytes | |||
-rwxr-xr-x | snowcast_server | bin | 55212 -> 37208 bytes | |||
-rw-r--r-- | snowcast_server_concurrent.c | 7 |
4 files changed, 4 insertions, 3 deletions
diff --git a/snowcast_control b/snowcast_control Binary files differindex cd01917..0d1ee4f 100755 --- a/snowcast_control +++ b/snowcast_control diff --git a/snowcast_listener b/snowcast_listener Binary files differindex 1ed31fc..9f75571 100755 --- a/snowcast_listener +++ b/snowcast_listener diff --git a/snowcast_server b/snowcast_server Binary files differindex cf52441..d9c7013 100755 --- a/snowcast_server +++ b/snowcast_server diff --git a/snowcast_server_concurrent.c b/snowcast_server_concurrent.c index 47b112a..d0e6aa5 100644 --- a/snowcast_server_concurrent.c +++ b/snowcast_server_concurrent.c @@ -112,6 +112,10 @@ int main(int argc, char *argv[]) pthread_t s_thread; pthread_create(&s_thread, NULL, select_thread, NULL); + // start syncchronization thread to broadcast stations + pthread_t sync_thread; +pthread_create(&sync_thread, NULL, synchronization_thread, NULL); + // command line interface char input[LINE_MAX]; while (1) { @@ -129,9 +133,6 @@ int main(int argc, char *argv[]) print_user_data(i); } } else if (strncmp("s\n", input, LINE_MAX) == 0) { - // start the streaming threads - pthread_t sync_thread; - pthread_create(&sync_thread, NULL, synchronization_thread, NULL); } } |