taso.c revision 3f54fd611f536639ec30dd53c48e5ec1897cc7d9
/***********************************************************************
* *
* This software is part of the ast package *
* Copyright (c) 2010-2011 AT&T Intellectual Property *
* and is licensed under the *
* Eclipse Public License, Version 1.0 *
* by AT&T Intellectual Property *
* *
* A copy of the License is available at *
* (with md5 checksum b35adb5213ca9657e911e9befb180842) *
* *
* Information and Software Systems Research *
* AT&T Research *
* Florham Park NJ *
* *
* Phong Vo <kpv@research.att.com> *
* Adam Edgar <aedgar@research.att.com> *
* Glenn Fowler <gsf@research.att.com> *
* *
***********************************************************************/
#pragma prototyped
#include <ast_standards.h>
#include <ast.h>
#include <aso.h>
typedef struct Aso_spin_s
{
} Aso_spin_t;
static void*
{
if (spin)
{
return 0;
}
return 0;
return spin;
}
static ssize_t
{
if (k > 0)
else
return 1;
}
#endif
typedef struct Aso_mutex_s
{
} Aso_mutex_t;
static void*
{
if (mutex)
{
return 0;
}
return 0;
return mutex;
}
static ssize_t
{
if (k > 0)
else
return 1;
}
#endif
{
&aso_spin,
#endif
#endif
};
#endif
/*
* default library asometh() intercept
*
* if type!=0 return lock method for type with name details
* else if name!=0 return lock method matching <name>[,<details>]
* else return the current lock method
* 0 returned on error
*/
{
size_t n;
int i;
char* e;
char* name;
{
return method[0];
return method[i+1];
meth = 0;
}
if (type)
for (i = 0; i < elementsof(method); i++)
{
return method[i];
}
{
for (i = 0; i < elementsof(method); i++)
{
if (e)
return method[i];
}
}
#endif
}