Deleted Added
full compact
thread.c (251886) thread.c (253734)
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0

--- 82 unchanged lines hidden (view full) ---

91{
92 int state;
93
94#ifdef PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG
95 state = pthread_attr_getdetachstate(&attr->attr);
96#else
97 pthread_attr_getdetachstate(&attr->attr, &state);
98#endif
1/* Licensed to the Apache Software Foundation (ASF) under one or more
2 * contributor license agreements. See the NOTICE file distributed with
3 * this work for additional information regarding copyright ownership.
4 * The ASF licenses this file to You under the Apache License, Version 2.0
5 * (the "License"); you may not use this file except in compliance with
6 * the License. You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0

--- 82 unchanged lines hidden (view full) ---

91{
92 int state;
93
94#ifdef PTHREAD_ATTR_GETDETACHSTATE_TAKES_ONE_ARG
95 state = pthread_attr_getdetachstate(&attr->attr);
96#else
97 pthread_attr_getdetachstate(&attr->attr, &state);
98#endif
99 if (state == 1)
99 if (state == DETACH_ARG(1))
100 return APR_DETACH;
101 return APR_NOTDETACH;
102}
103
104APR_DECLARE(apr_status_t) apr_threadattr_stacksize_set(apr_threadattr_t *attr,
105 apr_size_t stacksize)
106{
107 int stat;

--- 227 unchanged lines hidden ---
100 return APR_DETACH;
101 return APR_NOTDETACH;
102}
103
104APR_DECLARE(apr_status_t) apr_threadattr_stacksize_set(apr_threadattr_t *attr,
105 apr_size_t stacksize)
106{
107 int stat;

--- 227 unchanged lines hidden ---