Changeset 5361 for trunk/oscam-ac.c
- Timestamp:
- 06/06/11 01:52:08 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/oscam-ac.c
r4994 r5361 112 112 } 113 113 114 /* Starts the anticascader thread. */ 115 void start_anticascader(){ 116 struct s_client * cl = create_client(first_client->ip); 117 if (cl == NULL) return; 118 cl->thread = pthread_self(); 119 pthread_setspecific(getclient, cl); 120 cl->typ = 'a'; 121 122 ac_init_stat(); 123 while(1) 124 { 125 int32_t i; 126 for( i=0; i<cfg.ac_stime*60; i++ ) 127 cs_sleepms(1000); //FIXME this is a cpu-killer! 128 ac_do_stat(); 129 } 130 } 131 114 132 void ac_init_client(struct s_client *client, struct s_auth *account) 115 133 {
Note:
See TracChangeset
for help on using the changeset viewer.