if ( !input.is_open() )
	{
		--working_threads;
		amount_cond.notify_one();
		return 0;
	}