job: add forward declarations

This commit is contained in:
Danny Robson 2018-03-20 15:01:23 +11:00
parent 2508c5cc71
commit e120540bb9
3 changed files with 26 additions and 1 deletions

View File

@ -275,6 +275,7 @@ list (
io.cpp io.cpp
io.hpp io.hpp
iterator.hpp iterator.hpp
job/fwd.hpp
job/event.hpp job/event.hpp
job/flag.hpp job/flag.hpp
job/monitor.cpp job/monitor.cpp

24
job/fwd.hpp Normal file
View File

@ -0,0 +1,24 @@
/*
* 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
*
* 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.
*
* Copyright 2018 Danny Robson <danny@nerdcruft.net>
*/
#ifndef CRUFT_UTIL_JOB_FWD_HPP
#define CRUFT_UTIL_JOB_FWD_HPP
namespace util::job {
class queue;
}
#endif

View File

@ -11,7 +11,7 @@
* See the License for the specific language governing permissions and * See the License for the specific language governing permissions and
* limitations under the License. * limitations under the License.
* *
* Copyright 2017 Danny Robson <danny@nerdcruft.net> * Copyright 2017-2018 Danny Robson <danny@nerdcruft.net>
*/ */
#ifndef CRUFT_UTIL_JOB_QUEUE_HPP #ifndef CRUFT_UTIL_JOB_QUEUE_HPP