Return to Snippet

Revision: 54585
at January 4, 2012 00:57 by tilakapash


Initial Code
dispatch_queue_t get_my_background_queue()
{
	static dispatch_once_t once;
	static dispatch_queue_t my_queue;
	dispatch_once(&once, ^{
		my_queue = dispatch_queue_create("com.example.background", NULL);
	});
	return my_queue;
}

Initial URL

                                

Initial Description

                                

Initial Title
Use dispatch_once within GCD

Initial Tags

                                

Initial Language
Objective C