POSIX framework update

Updated the POSIX framework on the MeetiX’s libc. Now the system supports pthread wrapped on the native api to create and manage the threads.

Avaible and working functions:

  • int pthread_attr_init(pthread_attr_t *attr)
  • int pthread_set_detachstate(pthread_attr_t *attr, int detachstate)
  • int pthread_attr_destroy(pthread_attr_t *attr)
  • int pthread_create(pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)(void*), void *arg);
  • int pthread_join(pthread_t *thread, void **retval)
  • pthread_t *pthread_self()
  • int pthread_kill(pthread_t *thread, int sig)
  • void pthread_exit(void *value)

Updated the stress command, implemented the test code for native threads and posix threads.

Leave a Reply

Your email address will not be published. Required fields are marked *