From 0618afcfe7b12abf36b7bcc067baf6dd054489ae Mon Sep 17 00:00:00 2001 From: Ben Burwell Date: Wed, 1 May 2013 17:23:15 -0400 Subject: Adds RR functionality --- loading.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'loading.h') diff --git a/loading.h b/loading.h index 6aa43de..a9d7701 100644 --- a/loading.h +++ b/loading.h @@ -5,6 +5,19 @@ * Loading display */ +void *rrf(void * arg) { + + sleep(RR); + printf("\n Never gonna give you up \n"); + printf(" Never gonna let you down \n"); + printf(" Never gonna run around and desert you. \n"); + printf("%s ", prompt); + fflush(stdout); + + return; + +} + void loading() { printf(" Loading... 3"); @@ -21,4 +34,9 @@ void loading() { printf("\r Loading... Done.\n\n"); + if (RR) { + pthread_t rrt; + pthread_create(&rrt, NULL, rrf, NULL); + } + } \ No newline at end of file -- cgit v1.2.3