A brief file description. More...
#include "libts.h"
Go to the source code of this file.
Functions | |
void | ink_sem_init (ink_semaphore *sp, unsigned int count) |
void | ink_sem_destroy (ink_semaphore *sp) |
void | ink_sem_wait (ink_semaphore *sp) |
bool | ink_sem_trywait (ink_semaphore *sp) |
void | ink_sem_post (ink_semaphore *sp) |
Variables | |
ink_mutex | ink_mutex_initializer = INK_MUTEX_INIT |
A brief file description.
Licensed to the Apache Software Foundation (ASF) under one or more contributor license agreements. See the NOTICE file distributed with this work for additional information regarding copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Definition in file ink_thread.cc.
void ink_sem_destroy | ( | ink_semaphore * | sp | ) |
Definition at line 66 of file ink_thread.cc.
References ink_semaphore::get(), and ink_assert.
Referenced by delete_queue().
void ink_sem_init | ( | ink_semaphore * | sp, | |
unsigned int | count | |||
) |
Definition at line 46 of file ink_thread.cc.
References ink_semaphore::get(), ink_assert, and ink_semaphore::sema.
Referenced by create_queue().
void ink_sem_post | ( | ink_semaphore * | sp | ) |
Definition at line 93 of file ink_thread.cc.
References ink_semaphore::get(), and ink_assert.
Referenced by enqueue().
bool ink_sem_trywait | ( | ink_semaphore * | sp | ) |
Definition at line 84 of file ink_thread.cc.
References ink_semaphore::get(), and ink_assert.
void ink_sem_wait | ( | ink_semaphore * | sp | ) |
Definition at line 76 of file ink_thread.cc.
References ink_semaphore::get(), and ink_assert.
Referenced by dequeue().
ink_mutex ink_mutex_initializer = INK_MUTEX_INIT |
Definition at line 39 of file ink_thread.cc.