source: rtems/cpukit/libgnat/adasupp.c @ 0c5317d

4.115
Last change on this file since 0c5317d was 0c5317d, checked in by Sebastian Huber <sebastian.huber@…>, on Jul 19, 2013 at 12:33:56 PM

posix: Create pthread implementation header

Move implementation specific parts of pthread.h and pthread.inl into new
header file pthreadimpl.h. The pthread.h contains now only the
application visible API.

  • Property mode set to 100644
File size: 646 bytes
Line 
1#if HAVE_CONFIG_H
2#include "config.h"
3#endif
4
5#include <errno.h>
6#include <pthread.h>
7
8#include <rtems/system.h>
9#include <rtems/config.h>
10#include <rtems/posix/pthreadimpl.h>
11
12/*
13 *  _ada_pthread_minimum_stack_size
14 *
15 *  This routine returns the minimum stack size so the GNAT RTS can
16 *  allocate enough stack for Ada tasks.
17 */
18
19size_t _ada_pthread_minimum_stack_size( void )
20{
21  /*
22   *  Eventually this may need to include a per cpu family calculation
23   *  but for now, this will do.
24   */
25
26  return PTHREAD_MINIMUM_STACK_SIZE * 2;
27}
28
29uint32_t _ada_microseconds_per_tick(void)
30{
31  return rtems_configuration_get_microseconds_per_tick();
32}
Note: See TracBrowser for help on using the repository browser.