ObjFW  Check-in [2a73dbd64f]

Overview
Comment:Remove objc_global_mutex_free()

Since this is using of_once to initialize it, it won't be re-initialized
after freeing, therefore freeing is a bad idea.

Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 2a73dbd64fe1228739f56ad6791a8a6ecd2623f1fe4f1929f2d1ab244fd9ebed
User & Date: js on 2015-08-09 15:01:32
Other Links: manifest | tags
Context
2015-08-14
09:44
ChangeLog: Remove trailing dots check-in: bebee54bff user: js tags: trunk
2015-08-09
15:01
Remove objc_global_mutex_free() check-in: 2a73dbd64f user: js tags: trunk
15:00
configure.ac: Fix small typo check-in: ba9718061e user: js tags: trunk
Changes

Modified src/runtime/init.m from [e4e2284c12] to [c746849515].

40
41
42
43
44
45
46
47
48
	objc_unregister_all_categories();
	objc_unregister_all_classes();
	objc_unregister_all_selectors();
	objc_forget_pending_static_instances();
	objc_dtable_cleanup();

	objc_global_mutex_unlock();
	objc_global_mutex_free();
}







<

40
41
42
43
44
45
46

47
	objc_unregister_all_categories();
	objc_unregister_all_classes();
	objc_unregister_all_selectors();
	objc_forget_pending_static_instances();
	objc_dtable_cleanup();

	objc_global_mutex_unlock();

}

Modified src/runtime/threading.m from [7ebb50401c] to [c43c4c7c69].

44
45
46
47
48
49
50
51
52
53
54
55
56
57

void
objc_global_mutex_unlock(void)
{
	if (!of_rmutex_unlock(&global_mutex))
		OBJC_ERROR("Failed to unlock global mutex!");
}

void
objc_global_mutex_free(void)
{
	if (!of_rmutex_free(&global_mutex))
		OBJC_ERROR("Failed to free global mutex!");
}







<
<
<
<
<
<
<
44
45
46
47
48
49
50








void
objc_global_mutex_unlock(void)
{
	if (!of_rmutex_unlock(&global_mutex))
		OBJC_ERROR("Failed to unlock global mutex!");
}