/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/external/tinycthread.h

  • Committer: Gustav Hartvigsson
  • Date: 2021-01-07 22:28:14 UTC
  • mto: This revision was merged to the branch mainline in revision 153.
  • Revision ID: gustav.hartvigsson@gmail.com-20210107222814-yl53l62tdqnnwf87
* Removed wchar.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c; tab-width: 2; indent-tabs-mode: nil; -*-
2
2
Copyright (c) 2012 Marcus Geelnard
3
 
Copyright (c) 2013-2014 Evan Nemerson
 
3
Copyright (c) 2013-2016 Evan Nemerson
4
4
 
5
5
This software is provided 'as-is', without any express or implied
6
6
warranty. In no event will the authors be held liable for any damages
76
76
    #undef _XOPEN_SOURCE
77
77
    #define _XOPEN_SOURCE 500
78
78
  #endif
 
79
  #define _XPG6
79
80
#endif
80
81
 
81
82
/* Generic includes */
220
221
*/
221
222
int mtx_lock(mtx_t *mtx);
222
223
 
223
 
/** NOT YET IMPLEMENTED.
 
224
/** Lock the given mutex, or block until a specific point in time.
 
225
* Blocks until either the given mutex can be locked, or the specified TIME_UTC
 
226
* based time.
 
227
* @param mtx A mutex object.
 
228
* @param ts A UTC based calendar time
 
229
* @return @ref The mtx_timedlock function returns thrd_success on success, or
 
230
* thrd_timedout if the time specified was reached without acquiring the
 
231
* requested resource, or thrd_error if the request could not be honored.
224
232
*/
225
233
int mtx_timedlock(mtx_t *mtx, const struct timespec *ts);
226
234