Branch: Tag:

1997-10-04

1997-10-04 01:39:45 by David K├ągedal <david@kagedal.org>

(is_async,set_async): Added setter/getter functions around the async flag.

Rev: lib/modules/Remote.pmod/call.pike:1.3

5:   string name;   object con;   object ctx; - int is_async; + int _async;      mixed `() (mixed ... args)   { -  mixed data = ctx->encode_call(objectid, name, args, is_async); -  if (is_async) +  mixed data = ctx->encode_call(objectid, name, args, _async); +  if (_async)    con->call_async(data);    else    return con->call_sync(data);
19:      mixed sync(mixed ... args)   { -  mixed data = ctx->encode_call(objectid, name, args, is_async); +  mixed data = ctx->encode_call(objectid, name, args, _async);    return con->call_sync(data);   }      void async(mixed ... args)   { -  mixed data = ctx->encode_call(objectid, name, args, is_async); +  mixed data = ctx->encode_call(objectid, name, args, _async);    con->call_async(data);   }    -  + int is_async() + { +  return _async; + } +  + void set_async(int a) + { +  _async = a; + } +    void create(string oid, string n, object cn, object ct, int a)   {    objectid = oid;    name = n;    con = cn;    ctx = ct; -  is_async = a; +  _async = a;   }