Il sito funziona meglio con JavaScript.
Home
Esplora
Aiuto
Accedi
kris
/
httperf
Segui
1
Vota
0
Forka
0
Codice
Problemi
0
Pull Requests
0
Rilasci
0
Wiki
Attività
Sfoglia il codice sorgente
Removed timer interval from public timer.h header and duplicated Timer_Callback to allow timer.c to build without needing #include <timer.h>
ahc_fix_select
tedbullock
17 anni fa
parent
70c255dc95
commit
86d75c8bed
2 ha cambiato i file
con
3 aggiunte
e
3 eliminazioni
Visualizzazione separata
Opzioni Diff
Mostra statistiche
Scarica il file Patch
Scarica il file Diff
+3
-1
httperf/src/timer.c
+0
-2
httperf/src/timer.h
+ 3
- 1
httperf/src/timer.c
Vedi File
@@ -41,11 +41,13 @@
#include <heap.h>
#include <queue.h>
#include <httperf.h>
#include <timer.h>
#define HEAP_SIZE 4096
#define WHEEL_SIZE 4096
#define TIMER_INTERVAL (1.0/1000) /* timer granularity in seconds */
typedef void (*Timer_Callback) (struct Timer * t, Any_Type arg);
static Time now;
static Time next_tick;
+ 0
- 2
httperf/src/timer.h
Vedi File
@@ -32,8 +32,6 @@
#ifndef timer_h
#define timer_h
#define TIMER_INTERVAL (1.0/1000) /* timer granularity in seconds */
struct Timer;
typedef void (*Timer_Callback) (struct Timer * t, Any_Type arg);
Scrivi
Anteprima
Caricamento…
Annulla
Salva