Lines Matching refs:mech
134 apr_lockmech_e mech;
159 def->mech = APR_LOCK_DEFAULT;
172 apr_lockmech_e mech;
188 rv = ap_parse_mutex(mechdir, p, &mech, &mutexdir);
243 mxcfg->mech = mech;
272 mxcfg->mech = default_mech; /* usually APR_LOCK_DEFAULT */
278 static int mutex_needs_file(apr_lockmech_e mech)
280 if (mech != APR_LOCK_FLOCK
281 && mech != APR_LOCK_FCNTL
283 && mech != APR_LOCK_DEFAULT
297 if (!mutex_needs_file(mxcfg->mech)) {
343 else if (mxcfg->none || mxcfg->mech != APR_LOCK_DEFAULT) {
350 if (!newcfg->none && mutex_needs_file(newcfg->mech) && !newcfg->dir) {
434 rv = apr_global_mutex_create(mutex, fname, mxcfg->mech, p);
481 rv = apr_proc_mutex_create(mutex, fname, mxcfg->mech, p);
507 const char *name, *mech;
521 switch (mxcfg->mech) {
523 mech = "default";
527 mech = "fcntl";
532 mech = "flock";
537 mech = "posixsem";
542 mech = "sysvsem";
547 mech = "pthread";
557 apr_file_printf(out, "Mutex %s: dir=\"%s\" mechanism=%s %s\n", name, dir, mech,