From: <jpg...@us...> - 2008-07-02 22:34:07
|
Revision: 1444 http://iaxclient.svn.sourceforge.net/iaxclient/?rev=1444&view=rev Author: jpgrayson Date: 2008-07-02 15:34:14 -0700 (Wed, 02 Jul 2008) Log Message: ----------- Use more conventional "struct prioboost" instead of typedef. Modified Paths: -------------- trunk/lib/unixfuncs.c Modified: trunk/lib/unixfuncs.c =================================================================== --- trunk/lib/unixfuncs.c 2008-07-01 16:40:52 UTC (rev 1443) +++ trunk/lib/unixfuncs.c 2008-07-02 22:34:14 UTC (rev 1444) @@ -174,7 +174,8 @@ typedef void *(*pthread_function_t)(void *); -typedef struct { +struct prioboost +{ int priority; pthread_t ThreadID; @@ -187,11 +188,11 @@ pthread_t WatchDogThread; int IsWatchDogThreadValid; -} prioboost; +}; -static prioboost *pb; +static struct prioboost *pb; -static int CanaryProc( prioboost *b) +static int CanaryProc(struct prioboost *b) { int result = 0; struct sched_param schat = { 0 }; @@ -209,7 +210,7 @@ return result; } -static int WatchDogProc( prioboost *b ) +static int WatchDogProc(struct prioboost *b ) { struct sched_param schp = { 0 }; int maxPri; @@ -298,7 +299,7 @@ return 0; } -static void StopWatchDog( prioboost *b ) +static void StopWatchDog(struct prioboost *b) { /* Cancel WatchDog thread if there is one. */ if( b->IsWatchDogThreadValid ) @@ -322,7 +323,7 @@ } -static int StartWatchDog( prioboost *b) +static int StartWatchDog(struct prioboost *b) { int hres; int result = 0; @@ -364,7 +365,7 @@ int iaxci_prioboostbegin() { struct sched_param schp = { 0 }; - prioboost *b = calloc(sizeof(*b),1); + struct prioboost *b = calloc(sizeof(*b),1); int result = 0; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |