pkgsrc/lang/gcc3-ada/files/ada_lwp_self.c
drochner b6e4248069 add tasking support, developed by John R. Shannon, submitted by
PR pkg/23627
This requires native pthreads, so it is for -current only.
2003-12-08 18:33:52 +00:00

6 lines
116 B
C

/* Binding to _lwp_self for the Ada RTS */
#include <lwp.h>
lwpid_t ada_lwp_self(void) {
return _lwp_self();
}