blob: 4923eb0ca47c5f10d2cee357ecba605028df1aa1 [file] [log] [blame]
* This source file is part of the open source project
* Copyright (c) 2015 Apple Inc. and the Swift project authors
* Licensed under Apache License v2.0 with Runtime Library Exception
* See for license information
* See for the list of Swift project authors
* This file contains stubbed out functions we are using during
* the initial linux port. When the port is complete, this file
* should be empty (and thus removed).
#include <stdint.h>
#ifdef __ANDROID__
#include <sys/syscall.h>
#include <syscall.h>
#endif /* __ANDROID__ */
#if __has_include(<config/config_ac.h>)
#include <config/config_ac.h>
#include <config/config.h>
#include "pthread.h"
#include "os/linux_base.h"
#include "internal.h"
#define LINUX_PORT_ERROR() do { printf("LINUX_PORT_ERROR_CALLED %s:%d: %s\n",__FILE__,__LINE__,__FUNCTION__); abort(); } while (0)
* Stubbed out static data
pthread_key_t dispatch_voucher_key;
pthread_key_t dispatch_pthread_root_queue_observer_hooks_key;
unsigned short dispatch_timer__program_semaphore;
unsigned short dispatch_timer__wake_semaphore;
unsigned short dispatch_timer__fire_semaphore;
unsigned short dispatch_timer__configure_semaphore;
unsigned short dispatch_queue__pop_semaphore;
unsigned short dispatch_callout__entry_semaphore;
unsigned short dispatch_callout__return_semaphore;
unsigned short dispatch_queue__push_semaphore;
void (*_dispatch_block_special_invoke)(void*);
struct dispatch_queue_attr_s _dispatch_queue_attr_concurrent;