X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fjobs-fake.c;h=d3cd19e1cff1734fe42258f3d70dea3a57933c92;hb=refs%2Fchanges%2F95%2F14495%2F2;hp=3c1c27320dd381e0c2fabee051427f0bbdc6e75b;hpb=ba1f3e26cb5f5f3e95480cb5c6a519a87c4c5d88;p=src%2Fapp-framework-binder.git diff --git a/src/jobs-fake.c b/src/jobs-fake.c index 3c1c2732..d3cd19e1 100644 --- a/src/jobs-fake.c +++ b/src/jobs-fake.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017 "IoT.bzh" + * Copyright (C) 2016, 2017, 2018 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -71,7 +71,7 @@ static int add_job(const void *group, int timeout, void (*callback)(int signum, else first = j; last = j; - pthread_mutex_unlock(&mutex); + pthread_mutex_unlock(&mutex); return 0; } @@ -83,7 +83,7 @@ static void *thrrun(void *arg) j = first; if (j) first = j->next; - pthread_mutex_unlock(&mutex); + pthread_mutex_unlock(&mutex); if (j) { j->callback(0, j->closure); free(j);