Support globalState example on Windows. (#1289)

This commit is contained in:
Nikolay Igotti
2018-02-07 17:36:04 +03:00
committed by GitHub
parent f7af762dad
commit 8c72f0a629
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
package = platform.posix
headers = assert.h complex.h dirent.h errno.h fcntl.h \
fenv.h float.h ftw.h getopt.h inttypes.h libgen.h limits.h \
locale.h math.h memory.h sched.h search.h semaphore.h \
locale.h math.h memory.h pthread.h sched.h search.h semaphore.h \
setjmp.h signal.h stdint.h stdio.h stdlib.h string.h \
time.h uchar.h unistd.h utime.h wchar.h wctype.h
noStringConversion = send sendto recv
@@ -31,7 +31,7 @@ data class SharedData(val string: String, val int: Int, val member: SharedDataMe
fun dumpShared(prefix: String): Unit {
println("""
$prefix: ${pthread_self().rawValue} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()}
$prefix: ${pthread_self()} x=${sharedData.x} f=${sharedData.f} s=${sharedData.string!!.toKString()}
""".trimIndent())
}