summaryrefslogtreecommitdiffstats
path: root/src/thread.h
diff options
context:
space:
mode:
authorGravatar BALATON Zoltan2015-05-05 01:16:38 +0200
committerGravatar BALATON Zoltan2015-05-05 01:19:41 +0200
commit9a53b8f2bc3c2ac366d208b620d6404e936e2a92 (patch)
tree821796eeb2fc096ffb886aa8fb9b297421065d37 /src/thread.h
parente96e7dea1c2cd12ddb2679b7f91775c48aff4d11 (diff)
downloadidevicerestore-9a53b8f2bc3c2ac366d208b620d6404e936e2a92.tar.gz
idevicerestore-9a53b8f2bc3c2ac366d208b620d6404e936e2a92.tar.bz2
Update fdr implementation for thread function changes in latest
libimobiledevice version
Diffstat (limited to 'src/thread.h')
-rw-r--r--src/thread.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/thread.h b/src/thread.h
index 9b15cc4..bd53c5b 100644
--- a/src/thread.h
+++ b/src/thread.h
@@ -8,15 +8,15 @@
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
- *
+ *
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
- *
+ *
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
*/
#ifndef __THREAD_H
@@ -43,7 +43,8 @@ typedef pthread_once_t thread_once_t;
typedef void* (*thread_func_t)(void* data);
-int thread_create(thread_t* thread, thread_func_t thread_func, void* data);
+int thread_new(thread_t* thread, thread_func_t thread_func, void* data);
+void thread_free(thread_t thread);
void thread_join(thread_t thread);
void mutex_init(mutex_t* mutex);