Commit e75c18383fd0fb2897cbeb412c9e6d15c518e68a

Authored by Perry Werneck
1 parent 2790e55c

Performance tests (windows).

src/core/windows/event_dispatcher.c
@@ -199,7 +199,7 @@ retry: @@ -199,7 +199,7 @@ retry:
199 { 199 {
200 200
201 t->in_play = True; 201 t->in_play = True;
202 - (*t->proc)(hSession); 202 + (*t->proc)(hSession,t->userdata);
203 processed_any = True; 203 processed_any = True;
204 204
205 lib3270_linked_list_delete_node(&hSession->timeouts,t); 205 lib3270_linked_list_delete_node(&hSession->timeouts,t);
src/testprogram/testprogram.c
@@ -181,11 +181,17 @@ int main(int argc, char *argv[]) @@ -181,11 +181,17 @@ int main(int argc, char *argv[])
181 for(f=0;f < 1000; f++) { 181 for(f=0;f < 1000; f++) {
182 lib3270_wait_for_ready(h,10); 182 lib3270_wait_for_ready(h,10);
183 } 183 }
184 - printf("Time for 1000 iterations of wait_for_ready was %d\n",(int) (time(0) - start)); 184 +
  185 + time_t tm = (time(0) - start);
  186 + printf("\n\nTime for 1000 iterations of wait_for_ready was %d\n",(int) tm);
  187 +
  188 + if(tm > 1) {
  189 + exit(-1);
  190 + }
185 191
186 } 192 }
187 193
188 - printf("Waiting ends %u\n\n",(unsigned int) time(NULL)); 194 + printf("\n\nWaiting ends %u\n\n",(unsigned int) time(NULL));
189 195
190 lib3270_enter(h); 196 lib3270_enter(h);
191 lib3270_wait(h,5); 197 lib3270_wait(h,5);