#ifndef __THREAD_H
#define __THREAD_H
/*****************************************************************************
 *                                  _   _ ____  _     
 *  Project                     ___| | | |  _ \| |    
 *                             / __| | | | |_) | |    
 *                            | (__| |_| |  _ <| |___ 
 *                             \___|\___/|_| \_\_____|
 *
 * Copyright (C) 2000, Daniel Stenberg, <daniel@haxx.se>, et al.
 *
 * In order to be useful for every potential user, curl and libcurl are
 * dual-licensed under the MPL and the MIT/X-derivate licenses.
 *
 * You may opt to use, copy, modify, merge, publish, distribute and/or sell
 * copies of the Software, and permit persons to whom the Software is
 * furnished to do so, under the terms of the MPL or the MIT/X-derivate
 * licenses. You may pick one of these licenses.
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 * $Id: hash.h,v 1.2 2002/01/07 20:52:32 bumblebury Exp $
 *****************************************************************************/

#include "setup.h"

struct Curl_mutex {
    void *userData;

    void (*init)(void *);
    int (*lock)(void *);
    int (*unlock)(void *);
    void (*dtor)(void *);
};

void Curl_mutex_initialize(struct Curl_mutex *);
int  Curl_mutex_lock(struct Curl_mutex *);
int  Curl_mutex_unlock(struct Curl_mutex *);
void Curl_mutex_destroy(struct Curl_mutex *);

#endif

