Project

Profile

Help

Revision 1117bc69

Added by O'Neil Delpratt almost 2 years ago

Saxon/C Development - Multithreading feature

View differences:

latest9.9/hec/Saxon.C.API/XQueryProcessor.cpp
122 122
    void XQueryProcessor::setParameter(const char * name, XdmValue*value){
123 123
	if(value != NULL){
124 124
		value->incrementRefCount();
125
		int s = parameter.size();
125
		int s = parameters.size();
126 126
		std::String skey = "param:"+std::string(name);
127 127
		parameters[skey] = value;
128
		if(s == parameter.size()) {
128
		if(s == parameters.size()) {
129 129
            std::map<std::string, XdmValue*>::iterator it;
130 130
            it = parameters.find(skey);
131 131
            if (it != parameters.end()) {
......
358 358
				return xdmItem;
359 359
			
360 360
			} else if (SaxonProcessor::sxn_environ->env->IsInstanceOf(result, functionItemClass)           == JNI_TRUE) {
361
                xdmItem =  new XdmFunctionItem(result);
361
                /*xdmItem =  new XdmFunctionItem(result);
362 362
                xdmItem->setProcessor(proc);
363
                SaxonProcessor::sxn_environ->env->DeleteLocalRef(result);
364
                return xdmItem;
363
                SaxonProcessor::sxn_environ->env->DeleteLocalRef(result);*/
364
                return NULL;// xdmItem;
365 365
			} else {
366 366
				value = new XdmValue(result, true);
367 367
				value->setProcessor(proc);

Also available in: Unified diff