-static int vg_thread_run( void *pfunc, void *data );
-static void vg_thread_exit(void);
-static void vg_set_thread_name( const char *name );
-static int vg_semaphore_init( vg_semaphore *sem, u32 value );
-static int vg_semaphore_trywait( vg_semaphore *sem );
-static int vg_semaphore_wait( vg_semaphore *sem );
-static int vg_semaphore_post( vg_semaphore *sem );
-static void vg_semaphore_free( vg_semaphore *sem );
-static int vg_mutex_init( vg_mutex *mutex );
-static int vg_mutex_lock( vg_mutex *mutex );
-static int vg_mutex_unlock( vg_mutex *mutex );
-static void vg_mutex_free( vg_mutex *mutex );
-static void vg_sleep_ms( long msec );
-static double vg_time_diff( vg_timespec start, vg_timespec end );
+VG_STATIC int vg_thread_run( void *pfunc, void *data );
+VG_STATIC void vg_thread_exit(void);
+VG_STATIC void vg_set_thread_name( const char *name );
+VG_STATIC int vg_semaphore_init( vg_semaphore *sem, u32 value );
+VG_STATIC int vg_semaphore_trywait( vg_semaphore *sem );
+VG_STATIC int vg_semaphore_wait( vg_semaphore *sem );
+VG_STATIC int vg_semaphore_post( vg_semaphore *sem );
+VG_STATIC void vg_semaphore_free( vg_semaphore *sem );
+VG_STATIC int vg_mutex_init( vg_mutex *mutex );
+VG_STATIC int vg_mutex_lock( vg_mutex *mutex );
+VG_STATIC int vg_mutex_unlock( vg_mutex *mutex );
+VG_STATIC void vg_mutex_free( vg_mutex *mutex );
+VG_STATIC void vg_sleep_ms( long msec );
+VG_STATIC double vg_time_diff( vg_timespec start, vg_timespec end );