<?php class MyMiniSmarty{ //模版文件的存放路径 var $template_dir="./templates/"; //编译文件的存放路径 ,编译文件的名称格式暂定为:com_对应的tpl.php var $complie_dir="./templates_c"; //模版变量数组:存放所有模版变量的值 var $tpl_vars=array(); //这里我们主要模拟两个方法 //参数1-模版变量 参数2:模版变量的值 f
Conception A synchronization aid that allows one or more threads to wait until a set of operations being performed in other threads completes. 根据CountDownLatch的document,就是说CountDownLatch作为一个同步的助手,可以阻塞一个线程,等待另一个线程结束了再执行. 所以CountDownLatch的作用在于:通过阻塞来协调线