Skip to content

Commit 0c2a86d

Browse files
authored
Merge pull request #5 from AzureMarker/feature/pthread-extensions
Add some extensions to pthread for armv6k-nintendo-3ds
2 parents 4d2f997 + 3ff8eb6 commit 0c2a86d

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

src/unix/newlib/horizon/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -194,6 +194,12 @@ extern "C" {
194194
value: *mut ::c_void,
195195
) -> ::c_int;
196196

197+
pub fn pthread_attr_setpriority(attr: *mut ::pthread_attr_t, priority: ::c_int) -> ::c_int;
198+
199+
pub fn pthread_attr_setaffinity(attr: *mut ::pthread_attr_t, affinity: ::c_int) -> ::c_int;
200+
201+
pub fn pthread_getpriority() -> ::c_int;
202+
197203
pub fn getrandom(buf: *mut ::c_void, buflen: ::size_t, flags: ::c_uint) -> ::ssize_t;
198204

199205
pub fn gethostid() -> ::c_long;

0 commit comments

Comments
 (0)