X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=xmltooling%2FLockable.h;h=c10c2bf6451c433938c2f4b9742649a56225cf50;hb=882d7123a7999da34a478128fcf6efb222923c5f;hp=a244d2d897eeb7718e14e39c97f83660205edf50;hpb=bd026f07e729e66127b3efd48aee443fba815af3;p=shibboleth%2Fcpp-xmltooling.git diff --git a/xmltooling/Lockable.h b/xmltooling/Lockable.h index a244d2d..c10c2bf 100644 --- a/xmltooling/Lockable.h +++ b/xmltooling/Lockable.h @@ -1,17 +1,21 @@ -/* - * Copyright 2001-2009 Internet2 - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at +/** + * Licensed to the University Corporation for Advanced Internet + * Development, Inc. (UCAID) under one or more contributor license + * agreements. See the NOTICE file distributed with this work for + * additional information regarding copyright ownership. + * + * UCAID licenses this file to you under the Apache License, + * Version 2.0 (the "License"); you may not use this file except + * in compliance with the License. You may obtain a copy of the + * License at * - * http://www.apache.org/licenses/LICENSE-2.0 + * http://www.apache.org/licenses/LICENSE-2.0 * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. + * Unless required by applicable law or agreed to in writing, + * software distributed under the License is distributed on an + * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, + * either express or implied. See the License for the specific + * language governing permissions and limitations under the License. */ /** @@ -63,7 +67,7 @@ namespace xmltooling { * @param lockee pointer to an object to hold, and optionally lock * @param lock true iff object is not yet locked */ - Locker(Lockable* lockee=NULL, bool lock=true); + Locker(Lockable* lockee=nullptr, bool lock=true); /** * Optionally locks an object and stores it for later release. @@ -72,7 +76,7 @@ namespace xmltooling { * @param lockee pointer to an object to hold, and optionally lock * @param lock true iff object is not yet locked */ - void assign(Lockable* lockee=NULL, bool lock=true); + void assign(Lockable* lockee=nullptr, bool lock=true); /** * Destructor releases lock on held pointer, if any.