Data Structures | Typedefs | Functions | Variables

ink_mutex.h File Reference

A brief file description. More...

#include <stdio.h>
#include "ink_defs.h"
#include <pthread.h>
#include <stdlib.h>
Include dependency graph for ink_mutex.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

class  x_pthread_mutexattr_t
struct  ink_scoped_mutex

Typedefs

typedef pthread_mutex_t ink_mutex

Functions

static int ink_mutex_init (ink_mutex *m, const char *name)
static int ink_mutex_destroy (ink_mutex *m)
static int ink_mutex_acquire (ink_mutex *m)
static int ink_mutex_release (ink_mutex *m)
static int ink_mutex_try_acquire (ink_mutex *m)

Variables

class x_pthread_mutexattr_t _g_mattr

Detailed Description

A brief file description.

License

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_mutex.h.


Typedef Documentation

typedef pthread_mutex_t ink_mutex

Definition at line 43 of file ink_mutex.h.


Function Documentation

static int ink_mutex_acquire ( ink_mutex m  )  [inline, static]
static int ink_mutex_destroy ( ink_mutex m  )  [inline, static]
static int ink_mutex_init ( ink_mutex m,
const char *  name 
) [inline, static]
static int ink_mutex_release ( ink_mutex m  )  [inline, static]
static int ink_mutex_try_acquire ( ink_mutex m  )  [inline, static]

Variable Documentation

Definition at line 30 of file ink_mutex.cc.

Referenced by ink_mutex_init().