"Fossies" - the Fresh Open Source Software Archive

Member "mod_perl-2.0.11/xs/APR/OS/APR__OS.h" (5 Oct 2019, 1052 Bytes) of package /linux/www/apache_httpd_modules/mod_perl-2.0.11.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "APR__OS.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 2.0.8_vs_2.0.9.

    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
    9  *
   10  * Unless required by applicable law or agreed to in writing, software
   11  * distributed under the License is distributed on an "AS IS" BASIS,
   12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
   13  * See the License for the specific language governing permissions and
   14  * limitations under the License.
   15  */
   16 
   17 static MP_INLINE unsigned long mpxs_APR__OS_current_thread_id(pTHX)
   18 {
   19 #if APR_HAS_THREADS
   20     return (unsigned long)apr_os_thread_current();
   21 #else
   22     return 0;
   23 #endif
   24 }
   25 
   26 /*
   27  * Local Variables:
   28  * c-basic-offset: 4
   29  * indent-tabs-mode: nil
   30  * End:
   31  */