~ubuntu-branches/ubuntu/precise/p7zip/precise-updates

« back to all changes in this revision

Viewing changes to C/Threads.h

  • Committer: Bazaar Package Importer
  • Author(s): Mohammed Adnène Trojette
  • Date: 2009-02-14 20:12:27 UTC
  • mfrom: (1.1.11 upstream) (2.1.3 sid)
  • Revision ID: james.westby@ubuntu.com-20090214201227-go63qxm9ozfdma60
Tags: 4.65~dfsg.1-1
* New upstream release.
* Remove wx2.8 Build-Depends added by mistakes (7zG is not yet
  intended to be built).
* Use dh_clean without -k.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Threads.h
 
1
/* Threads.h -- multithreading library
 
2
2008-11-22 : Igor Pavlov : Public domain */
2
3
 
3
4
#ifndef __7Z_THRESDS_H
4
5
#define __7Z_THRESDS_H
5
6
 
6
 
#include <windows.h>
7
 
 
8
7
#include "Types.h"
 
8
#include "windows.h"
9
9
 
10
10
#ifdef ENV_BEOS
11
11
#include <kernel/OS.h>
34
34
#define THREAD_FUNC_CALL_TYPE MY_STD_CALL
35
35
#define THREAD_FUNC_DECL THREAD_FUNC_RET_TYPE THREAD_FUNC_CALL_TYPE
36
36
 
37
 
typedef DWORD WRes;
38
 
 
39
37
WRes Thread_Create(CThread *thread, THREAD_FUNC_RET_TYPE (THREAD_FUNC_CALL_TYPE *startAddress)(void *), LPVOID parameter);
40
38
WRes Thread_Wait(CThread *thread);
41
39
WRes Thread_Close(CThread *thread);