Questions tagged [dispatch]

Dynamic dispatch (also known as dynamic binding) is the process of mapping a message to a specific sequence of code (method) at runtime. This is done to support the cases where the appropriate method cannot be determined at compile-time (i.e. statically).

Dynamic dispatch is only used for code invocation and not for other binding processes (such as for global variables) and the name is normally only used to describe a language feature where a runtime decision is required to determine which code to invoke.

This Object-Oriented feature allows substituting a particular implementation using the same interface, and therefore it enables polymorphism.

http://en.wikipedia.org/wiki/Dynamic_dispatch

974 questions
0
votes
1 answer

FwpmEngineOpen fails at dispatch level

I am trying to add a WFP filter while holding an NDIS RW lock, but FwpmEngineOpen or FwpmTransactionBegin functions fail. Is there a limitation that prevents these functions to work at Dispatch level? Thanks!
0
votes
1 answer

Java dispatch soapmessage and proxy

I create a Java client for a webservice using this link but I need to connect to a Proxy (with user and password) before call the webservice. At other times, I created a Proxy and open a httpconnection directly but now, I don´t know how put a Proxy…
Jose Antonio
  • 578
  • 1
  • 8
  • 34
0
votes
2 answers

Queueing with dispatch

I am creating queue where at first I compress images in background and add it to dictionary in main queue. The next then all images comprised and added I print message. I do not archive it with my code. Why?…
0
votes
1 answer

Argument dispatch via `...` (three dots) to multiple functions across different calling stack layers

IMO, it's not just an exact duplicate of the question that is being referred to: My question involves a n-step dispatch (n = 2 in the actual example) of arguments in ...: bar() and foo() are not both called directly inside foobar(), but foobar()…
Rappster
  • 12,762
  • 7
  • 71
  • 120
0
votes
1 answer

IOS Use Single Dispatch_group Multiple Times in One Class

I have a app a app that allows users to rapidly send photos to each other , but as we all know users dont always have a perfect internet connection so we decided to create a system that would temp store all the photos in a directory and info for…
ChuckKelly
  • 1,742
  • 5
  • 25
  • 54
0
votes
1 answer

How do I pass a var from within a dispatch_sync block?

I need to extract a NSData item from within a block of a dispatch_sync(). Specifically, I can't do a 'return data' in mid block due to a compiler error: Incompatible block pointer types passing 'NSData *(^)(void)' to parameter of type…
Frederick C. Lee
  • 9,019
  • 17
  • 64
  • 105
0
votes
0 answers

How to Call text posting method after image posting method get done in IOS

I used below code for calling image posting first and then text posting upon completion of image posting method... -(IBAction)btnChooseClecked:(id)sender { NSOperationQueue *queue = [NSOperationQueue new]; …
Vidhyanand
  • 5,369
  • 4
  • 26
  • 59
0
votes
1 answer

Not sure on method name of block code

I want to create a method which run's a user's provided block of code, making use of dispatch groups, and has the implementation as follows: dispatch_group_enter(self.group); block(^ { dispatch_group_leave(self.group); if (completion) { …
Andrew
  • 7,693
  • 11
  • 43
  • 81
0
votes
1 answer

Dispatch jobs under distributed system

Is there a light weight open source tool for dispatching jobs under distributed system? I'd like to dispatch config files to slave servers,one config file stands for one job. Managed server maintains all config files, it also maintains a mapping…
Bruce_Han
  • 1
  • 2
0
votes
1 answer

Why do live bytes keep rising when running an NSTimer loop off the main queue?

I have searched StackOverflow for similar topics; there are two similar posts, but I am a bit of a dummy and do not understand the answers given. My issue is that when I run this code without specifying that it should go on a dispatch queue, the…
user1976727
  • 71
  • 10
0
votes
1 answer

Stream a database recordset to multiple thread workers

I have a process which requires streaming data from a database and passing the records off to an external server for processing before returning the results to store back in the database. Get database row from table A Hand off to external…
eageranalyst
  • 1,016
  • 9
  • 15
0
votes
2 answers

Multi-method in Clojure not returning expected value

I am working through the Joy of Clojure book and am now on the multi-methods section. In that book they give an example that is supposed to return one thing, but returns another for me (I have tried both LightTable and Emacs). The code is a little…
kurofune
  • 1,055
  • 12
  • 26
0
votes
2 answers

queuering GCD with 2 blocks

I want create queue in that first block will run in background, then it finished I want run second block in main thread dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_BACKGROUND, 0), ^{ // block 1 …
0
votes
2 answers

Magento dispatching outside application

I'm trying to figure out how exactly Magento's dispatching system works. I want to dispatch a certain part of the layout (e.g. the body) from outside the application directory. What i have so far;
Roland Franssen
  • 1,038
  • 1
  • 11
  • 22
0
votes
1 answer

Problems with dispatch iOS

I'm new to iOS and I have trouble understanding and applying well dispatch ... I have an application I need to query a website (api) within a for loop, the end of that cycle I need to make further inquiries in another cycle, and finally, at the end…
AUbilla
  • 19
  • 6