/simpletypesystem/trunk

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/simpletypesystem/trunk

« back to all changes in this revision

Viewing changes to libssts/Thread.h

  • Committer: Gustav Hartvigsson
  • Date: 2016-01-30 21:23:29 UTC
  • Revision ID: gustav.hartvigsson@gmail.com-20160130212329-cjpxy0vn851li8f3
* added S_EXPERTED to public functions.
* renamed -  internal_s_box_set_err_on_missmatch () to _internal_s_box_set_err_on_missmatch ().
* Replaced some tabs with spaces.

Show diffs side-by-side

added added

removed removed

Lines of Context:
37
37
/**
38
38
 * Sleep for a set amount of micro seconds.
39
39
 */
 
40
S_EXPORTED
40
41
void
41
42
s_usleep (slong us);
42
43
 
78
79
 * @see SThreadStatus
79
80
 * @see SThreadStatusName
80
81
 */
81
 
 
 
82
S_EXPORTED
82
83
char *
83
84
s_thread_status_get_name (SThreadStatus status);
84
85
 
102
103
/**
103
104
 * Create a new SMutex;
104
105
 */
 
106
S_EXPORTED
105
107
SMutex *
106
108
s_mutex_new ();
107
109
 
108
110
/**
109
111
 * Free the mutex.
110
112
 */
 
113
S_EXPORTED
111
114
void
112
115
s_mutex_free (SMutex * self);
113
116
 
116
119
 *
117
120
 * Returns a key used to unlock the mutex.
118
121
 */
 
122
S_EXPORTED
119
123
SThreadStatus
120
124
s_mutex_lock (SMutex * self);
121
125
 
125
129
 * @param self The mutex to unlock;
126
130
 * @param key The key used to unlock the mutex.
127
131
 */
 
132
S_EXPORTED
128
133
SThreadStatus
129
134
s_mutex_unlock (SMutex * self);
130
135
 
133
138
 *
134
139
 * Note that this operation is non-atomic and may be wrong. 
135
140
 */
 
141
S_EXPORTED
136
142
SThreadStatus
137
143
s_mutex_check_lock (SMutex * self);
138
144
 
156
162
/**
157
163
 * Creat a now Thread.
158
164
 */
 
165
S_EXPORTED
159
166
SThread *
160
167
s_thread_new (RunFunc func);
161
168
 
162
169
/**
163
170
 * Free the thread object.
164
171
 */
 
172
S_EXPORTED
165
173
void
166
174
s_thread_free (SThread * self);
167
175
 
168
176
/**
169
177
 * Run the thread.
170
178
 */
 
179
S_EXPORTED
171
180
sboolean
172
181
s_thread_run (SThread * self, spointer user_data);
173
182