summaryrefslogtreecommitdiff
path: root/src/benchmarks
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-06-04 13:49:51 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-06-05 21:57:08 -0300
commitc6733fbbed5dbf73d23cf32f1f15d557f13e8800 (patch)
tree7d2d00a3cdd4674a931cb98b954a90efa0ac3607 /src/benchmarks
parent3022503aa5dce605df7fbd4dc48b9fc00b10cd06 (diff)
eina: Fixes on promises benchmark
- Updated after pointer vs value change - Updated callbacks after removal of promise argument
Diffstat (limited to 'src/benchmarks')
-rw-r--r--src/benchmarks/eina/eina_bench_promise.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/benchmarks/eina/eina_bench_promise.c b/src/benchmarks/eina/eina_bench_promise.c
index ee6153c..90a39df 100644
--- a/src/benchmarks/eina/eina_bench_promise.c
+++ b/src/benchmarks/eina/eina_bench_promise.c
@@ -44,16 +44,16 @@ struct value_type
44 int h; 44 int h;
45}; 45};
46 46
47void cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) 47void cb(void* data EINA_UNUSED, void* value)
48{ 48{
49 struct value_type* p = value; 49 struct value_type* p = value;
50 volatile int v = p->x * p->y * p->w * p->h; 50 volatile int v = p->x * p->y * p->w * p->h;
51 (void)v; 51 (void)v;
52} 52}
53 53
54void pointer_cb(void* data EINA_UNUSED, void* value, Eina_Promise* promise EINA_UNUSED) 54void pointer_cb(void* data EINA_UNUSED, void* value)
55{ 55{
56 struct value_type* p = *(struct value_type**)value; 56 struct value_type* p = value;
57 volatile int v = p->x * p->y * p->w * p->h; 57 volatile int v = p->x * p->y * p->w * p->h;
58 (void)v; 58 (void)v;
59} 59}
@@ -199,7 +199,7 @@ eina_bench_promise_copy_value_set_before_then(int request)
199 199
200static void indirect_free(void* p) 200static void indirect_free(void* p)
201{ 201{
202 free(*(void**)p); 202 free(p);
203} 203}
204 204
205static void 205static void