~ubuntu-branches/debian/squeeze/erlang/squeeze

« back to all changes in this revision

Viewing changes to erts/emulator/sys/ose/sys_threads.c

  • Committer: Bazaar Package Importer
  • Author(s): Erlang Packagers, Sergei Golovan
  • Date: 2006-12-03 17:07:44 UTC
  • mfrom: (2.1.11 feisty)
  • Revision ID: james.westby@ubuntu.com-20061203170744-rghjwupacqlzs6kv
Tags: 1:11.b.2-4
[ Sergei Golovan ]
Fixed erlang-base and erlang-base-hipe prerm scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* ``The contents of this file are subject to the Erlang Public License,
2
 
 * Version 1.1, (the "License"); you may not use this file except in
3
 
 * compliance with the License. You should have received a copy of the
4
 
 * Erlang Public License along with this software. If not, it can be
5
 
 * retrieved via the world wide web at http://www.erlang.org/.
6
 
 * 
7
 
 * Software distributed under the License is distributed on an "AS IS"
8
 
 * basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See
9
 
 * the License for the specific language governing rights and limitations
10
 
 * under the License.
11
 
 * 
12
 
 * The Initial Developer of the Original Code is Ericsson Utvecklings AB.
13
 
 * Portions created by Ericsson are Copyright 1999, Ericsson Utvecklings
14
 
 * AB. All Rights Reserved.''
15
 
 * 
16
 
 *     $Id$
17
 
 */
18
 
 
19
 
 
20
 
#include "sys.h"
21
 
#include "erl_alloc.h"
22
 
#include "erl_driver.h"
23
 
#define ERL_THREADS_EMU_INTERNAL__
24
 
#include "erl_threads.h"
25
 
 
26
 
struct _thread_data
27
 
{
28
 
    void* (*func)(void*);
29
 
    void* arg;
30
 
};
31
 
 
32
 
erts_mutex_t erts_mutex_create(void)
33
 
{
34
 
    return NULL;
35
 
}
36
 
 
37
 
erts_mutex_t erts_mutex_sys(int mno)
38
 
{
39
 
    return NULL;
40
 
}
41
 
 
42
 
int erts_atfork_sys(void (*prepare)(void),
43
 
                    void (*parent)(void),
44
 
                    void (*child)(void))
45
 
{
46
 
    return -1;
47
 
}
48
 
 
49
 
int erts_mutex_set_default_atfork(erts_mutex_t mtx)
50
 
{
51
 
    return -1;
52
 
}
53
 
 
54
 
int erts_mutex_unset_default_atfork(erts_mutex_t mtx)
55
 
{
56
 
    return -1;
57
 
}
58
 
 
59
 
int erts_mutex_destroy(erts_mutex_t mtx)
60
 
{
61
 
    return -1;
62
 
}
63
 
 
64
 
int erts_mutex_lock(erts_mutex_t mtx)
65
 
{
66
 
    return -1;
67
 
}
68
 
 
69
 
int erts_mutex_unlock(erts_mutex_t mtx)
70
 
{
71
 
    return -1;
72
 
}
73
 
 
74
 
erts_cond_t erts_cond_create(void)
75
 
{
76
 
    return NULL;
77
 
}
78
 
 
79
 
int erts_cond_destroy(erts_cond_t cv)
80
 
{
81
 
    return -1;
82
 
}
83
 
 
84
 
int erts_cond_signal(erts_cond_t cv)
85
 
{
86
 
    return -1;
87
 
}
88
 
 
89
 
int erts_cond_broadcast(erts_cond_t cv)
90
 
{
91
 
    return -1;
92
 
}
93
 
 
94
 
int erts_cond_wait(erts_cond_t cv, erts_mutex_t mtx)
95
 
{
96
 
    return -1;
97
 
}
98
 
 
99
 
int erts_cond_timedwait(erts_cond_t cp, erts_mutex_t mp, long time)
100
 
{
101
 
    return -1;
102
 
}
103
 
 
104
 
int erts_thread_create(erts_thread_t* tpp, 
105
 
                      void* (*func)(void*),
106
 
                      void* arg,
107
 
                      int detached)
108
 
{
109
 
    return -1;
110
 
}
111
 
 
112
 
erts_thread_t erts_thread_self()
113
 
{
114
 
    return NULL;
115
 
}
116
 
 
117
 
void erts_thread_exit(void* val)
118
 
{
119
 
}
120
 
 
121
 
int erts_thread_join(erts_thread_t tp, void** vp)
122
 
{
123
 
    return -1;
124
 
}
125
 
 
126
 
int er_thread_kill(erts_thread_t tp)
127
 
{
128
 
    return -1;
129
 
}
130
 
 
131
 
void
132
 
erts_sys_threads_init(void)
133
 
{
134
 
    /* NOTE: erts_sys_threads_init() is called before allocators are
135
 
     * initialized; therefore, it's not allowed to call erts_alloc()
136
 
     * (and friends) from here.
137
 
     */
138
 
    
139
 
}